Crate enc

Source

Macros§

impl_decode_from_read_by_prefix
Implements the DecodeFromRead trait for trait where it is equivalent to the DecodeFromReadPrefix implementation. Also adds a stream exhaustion debug assertion.
impl_encode_to_write_stack_buf
Implements EncodeToWrite for a type that also implements EncodeToSlice where the encoding has a small maximum encoded length. The data is buffered on the stack before it is written out.

Enums§

Error
An error processing encoded data.
StreamError
Either a stream error or an encoding error.

Functions§

read_optional_byte
Reads an optional byte from the Read.
read_single_byte
Reads a single byte from the Read.