Function be_u16
fn be_u16<Input, Error>(input: &mut Input) -> Result<u16, Error>
where
Input: StreamIsPartial + Stream<Token = u8>,
Error: ParserError<Input>
Recognizes a big endian unsigned 2 bytes integer.
Complete version: Returns an error if there is not enough input data.
[Partial version][crate::_topic::partial]: Will return Err(winnow::error::ErrMode::Incomplete(_)) if there is not enough data.
Example
# use ;
# use *;
# use Size;
use be_u16;
assert_eq!;
assert!;
# use ;
# use *;
# use Partial;
use be_u16;
assert_eq!;
assert_eq!;