Expand description
Serialization (and deserialization) of primitive unsigned integer types to (and from) an arbitrary fixed-length byte array.
Macrosยง
- bytes_
serde_ ๐impl - Impl
serdefor type$Twith methods named$to_bytes,$from_bytesof the form - uint_
bytes_ ๐impl
Functionsยง
- u32_
fits - Can
nfit intobyte_lenbytes? - u32_
from_ bytes - Deserialize
bytesin little-endian form into a$T, padding with 0 as needed. - u32_
max_ from_ byte_ len - Return the largest
$Tvalue that can fit intobyte_lenbytes. - u32_
to_ bytes - Serialize
nintoBYTE_LENbytes in little-endian form, padding with 0 as needed. - usize_
fits - Can
nfit intobyte_lenbytes? - usize_
from_ bytes - Deserialize
bytesin little-endian form into a$T, padding with 0 as needed. - usize_
max_ from_ byte_ len - Return the largest
$Tvalue that can fit intobyte_lenbytes. - usize_
to_ bytes - Serialize
nintoBYTE_LENbytes in little-endian form, padding with 0 as needed.