Expand description
Traits§
- A trait for values that provide deserialization from buffers of bytes.
- A trait for values that provide serialization into buffers of bytes.
Functions§
- Add
T::max_size()
“red zone” (padding of zeroes) to the end of the vec ofbytes
. This allows deserialization to assert that at leastT::max_size()
bytes exist at all times. - Peek helper for constructing a
T
byDefault
initialized stack allocation. - Peek inplace a
T
from a slice of bytes, returning a slice of the remaining bytes.src
must contain at leastT::max_size()
bytes. - Peek helper for constructing a
T
byCopy
ing into an uninitialized stack allocation. - Poke helper to insert a serialized version of
src
at the beginning fordst
. - Poke helper to append a serialized version of
src
to the end ofdst
.