Struct bytecodec::fixnum::U16leDecoder [−][src]
pub struct U16leDecoder(_);
Expand description
Decoder which decodes u16
values by little-endian byte order.
Examples
use bytecodec::Decode; use bytecodec::fixnum::U16leDecoder; use bytecodec::io::IoDecodeExt; let mut decoder = U16leDecoder::new(); let item = decoder.decode_exact([0x01, 0x02].as_ref()).unwrap(); assert_eq!(item, 0x0201u16);
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for U16leDecoder
impl Send for U16leDecoder
impl Sync for U16leDecoder
impl Unpin for U16leDecoder
impl UnwindSafe for U16leDecoder