Expand description
This module contains functions to convert between big and little endian byte order.
Functionsยง
- from_
be_ to_ le - Takes a u8 array in big endian byte order and converts it to little endian byte order.
- from_
le_ to_ be - Takes a u8 array in little endian byte order and converts it to big endian byte order.
- from_
u8_ to_ u16 - Takes a u8 array and constructs a u16 array by converting two u8 values into one u16 value.
- from_
u16_ to_ u8 - Takes a u16 array and constructs a u8 array by converting one u16 value into two u8 values.