Skip to main content

add_lib_ver

Function add_lib_ver 

Source
pub fn add_lib_ver<const SERIALIZED_LEN: usize>(
    state: &mut [u8; SERIALIZED_LEN],
) -> &mut [u8] 
Expand description

Puts the library version into the first three bytes of the state array.

Hands back a slice to the same array, starting after the version tag.