Module image_byteorder_ops

Module image_byteorder_ops 

Source
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.