Encoder<T> typedef

Encoder<T> = void Function(T value, Packer packer)

Encodes a value of type T into bytes.

The packer parameter allows writing custom encoding logic directly into the stream.

Implementation

typedef Encoder<T> = void Function(T value, Packer packer);