Module bytes

Module bytes 

Source
Expand description

Word-aligned bytes serialization functions.

Structs§

Bytes
A new type around Vec<u8> with useful utilities and optimizations.

Constants§

WORD_SIZE
Size of a word, in bytes

Functions§

padded_len
Return the word-padded length of the buffer. Returns None if the length is too large to be represented as usize.
padded_len_usize
Return the word-padded length of an arbitrary length. Returns None if the length is too large to be represented as usize.
padded_len_word
Return the word-padded length of an arbitrary length. Returns None if the length is too large to be represented as Word.