Versions in this module Expand all Collapse all v0 v0.2.0 Apr 21, 2026 Changes in this version + func NewDecoder(opts ...Option) encoding.Decoder[[]byte, []byte] + func NewEncoder(opts ...Option) encoding.Encoder[[]byte, []byte] + func NewStreamDecoder(opts ...Option) encoding.StreamDecoder[[]byte] + func NewStreamEncoder(opts ...Option) encoding.StreamEncoder[[]byte] v0.1.0 Apr 10, 2026 Changes in this version + type Codec struct + func NewCodec[T any](codec encoding.Codec[T], opts ...Option) *Codec[T] + func (c *Codec[T]) Decode(b []byte, v *T) error + func (c *Codec[T]) Encode(v T) ([]byte, error) + type Option func(o *options) + func WithLevel(level int) Option + func WithMaxDecodedSize(n int64) Option + type StreamCodec struct + func NewStreamCodec[T any](codec encoding.StreamCodec[T], opts ...Option) *StreamCodec[T] + func (c *StreamCodec[T]) Decode(r io.Reader, v *T) error + func (c *StreamCodec[T]) Encode(w io.Writer, v T) error