Expand description
Core traits for encoding and decoding.
Traitsยง
- Codec
- Convenience trait combining
EncodeandDecode. - Decode
- Trait combining
Readwith a check for remaining bytes. - Encode
- Trait combining
WriteandEncodeSizefor types that can be fully encoded. - Encode
Fixed - Convenience trait for
FixedSizetypes that can be encoded directly into a fixed-size array. - Encode
Size - Trait for types that can provide their encoded size in bytes.
- Fixed
Size - Trait for types with a known, fixed encoded size.
- Read
- Trait for types that can be read (decoded) from a byte buffer.
- Write
- Trait for types that can be written (encoded) to a byte buffer.