Module zerodmg_utils::little_endian[][src]

Functions for working with little-endian binary data. Argument lists and return tuples are least-significant-first.

Don't forget that Rust's hex integer literals are big-endian.

Functions

u16_to_u8s

Splits a u16 into two u8s.

u8_get_bit

Returns the value of the offsetth bit in a u8 x.

u8_set_bit

Sets the value of the offsetth bit in a u8 x.

u8s_to_u16

Combines two u8 values into a u16