Module utils

Source

Functionsยง

diff_hashsets
This method return a tuple off two vec containing added and removed values.
get_bytes_from_slice
===================================* * Array/vec/set manipulators * * *===================================== This functions return a bytes slice according to the given bounds. FROM and TO are include in the returned slice.
get_u16_at_pos
This method is an helper to find an u16 at position in a buffer of u8
get_u32_at_pos
This method is an helper to find an u32 at position in a buffer of u8
get_u64_at_pos
This method is an helper to find an u64 at position in a buffer of u8
u8_to_vec_be
This method return the bitfield image of the given u8.
vec_to_u8
This method return the u8 image of the given bitfields. The bitfield must be in little endian