Structs§
- Byte
Serializer Stack - A byte buffer allocated on stack backed by
[u8; CAP], can be reused and recycled by calling Self::clear(). Example: Creates a buffer with 128 bytes capacity and serializes data into it.
Traits§
- Byte
Serialize Stack - Trait type accepted by ByteSerializerStack for serialization. Example: Define structure and manually implement ByteSerializeStack trait then use it to serialize.
Functions§
- to_
bytes_ stack - Analogous to
to_serializer_stack::<CAP>(), but returns just the array of bytes[u8; CAP]. Note that this is not a&[u8]slice, but an array of bytes with length CAP even if the actual length of the serialized data is less. - to_
serializer_ stack - Analogous to
to_bytes_stack::<CAP>(), but returns an instance ofByteSerializerStack<CAP>.