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