Skip to main content

Module fixed_length

Module fixed_length 

Source

Functions§

decode_fixed_length_vec
decode_fixed_length_vec_u8
Optimized decoding for Vec - just copy_from_slice without decode overhead
decode_remaining_vec_u8
Decode remaining bytes - consumes all remaining buffer
encode_fixed_length_vec
Helper functions for encoding/decoding fixed-length vectors These functions do not encode a length prefix since it’s known from context
encode_fixed_length_vec_u8
Optimized encoding for Vec - just extends the buffer directly
encode_remaining_vec_u8
Encode remaining bytes - for Vec at end of packet