Structs§
Traits§
- Codec
- Things we can encode and read from a Reader,
Sizedversion. Easier to work with when types are instantiated, for example in protocol crates such astlspuffin. - CodecP
- Things we can encode and read from a Reader.
Used by puffin as it does not require to be
Sized(we rely on<dyn T>forT:CodecP. - VecCodec
WoSize - Trait for data whose Vectors are encoded without length prefix
Functions§
- compare_
encoding - decode_
u8 🔒 - decode_
u16 - decode_
u32 - decode_
u64 - encode_
vec_ u8 - encode a Vec whose length is encoded in 1 byte
- encode_
vec_ u16 - encode a Vec whose length is encoded in 2 bytes
- encode_
vec_ u24 - encode a Vec whose length is encoded in 3 bytes
- put_u16
- put_u64
- read_
vec_ u8 - read_
vec_ u16 - read_
vec_ u24_ limited