Struct bytecodec::fixnum::U48leDecoder [−][src]
pub struct U48leDecoder(_);
Expand description
Decoder which decodes unsigned 48-bit integers by little-endian byte order.
The type of decoded values is u64
, but the most significant 16-bits always be 0
.
Examples
use bytecodec::Decode; use bytecodec::fixnum::U48leDecoder; use bytecodec::io::IoDecodeExt; let mut decoder = U48leDecoder::new(); let item = decoder.decode_exact([0x01, 0x02, 0x03, 0x04, 0x05, 0x06].as_ref()).unwrap(); assert_eq!(item, 0x0000_0605_0403_0201u64);
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for U48leDecoder
impl Send for U48leDecoder
impl Sync for U48leDecoder
impl Unpin for U48leDecoder
impl UnwindSafe for U48leDecoder