Versions in this module Expand all Collapse all v0 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