[][src]Trait endian_codec::DecodeME

pub trait DecodeME: PackedSize {
    fn decode_from_me_bytes(bytes: &[u8]) -> Self;
}

Decode from bytes stored as a mixed-endian.

Note

If you only use big-/little-endians, consider using DecodeBE / DecodeLE traits instead.

Required methods

fn decode_from_me_bytes(bytes: &[u8]) -> Self

Read bytes slice packed as mixed(custom)-endian bytes and create Self from them

Panics

Panic if PackedSize represents a different size than bytes slice.

Loading content...

Implementors

impl DecodeME for [u8; 1][src]

impl DecodeME for [u8; 2][src]

impl DecodeME for [u8; 3][src]

impl DecodeME for [u8; 4][src]

impl DecodeME for [u8; 5][src]

impl DecodeME for [u8; 6][src]

impl DecodeME for [u8; 7][src]

impl DecodeME for [u8; 8][src]

impl DecodeME for [u8; 9][src]

impl DecodeME for [u8; 10][src]

impl DecodeME for [u8; 11][src]

impl DecodeME for [u8; 12][src]

impl DecodeME for [u8; 13][src]

impl DecodeME for [u8; 14][src]

impl DecodeME for [u8; 15][src]

impl DecodeME for [u8; 16][src]

impl DecodeME for [u8; 17][src]

impl DecodeME for [u8; 18][src]

impl DecodeME for [u8; 19][src]

impl DecodeME for [u8; 20][src]

impl DecodeME for [u8; 21][src]

impl DecodeME for [u8; 22][src]

impl DecodeME for [u8; 23][src]

impl DecodeME for [u8; 24][src]

impl DecodeME for [u8; 25][src]

impl DecodeME for [u8; 26][src]

impl DecodeME for [u8; 27][src]

impl DecodeME for [u8; 28][src]

impl DecodeME for [u8; 29][src]

impl DecodeME for [u8; 30][src]

impl DecodeME for [u8; 31][src]

impl DecodeME for [u8; 32][src]

impl DecodeME for u8[src]

Loading content...