Skip to main content

write_serializable_bytes_without_length

Function write_serializable_bytes_without_length 

Source
pub fn write_serializable_bytes_without_length<T, A, F>(
    elements: &[A],
    output: &mut [u8],
)
Expand description

Writes the bytes for a VarZeroLengthlessSlice into an output buffer. Usable for a VarZeroSlice if you first write the length bytes.

Every byte in the buffer will be initialized after calling this function.

ยงPanics

Panics if the buffer is not exactly the correct length.