Versions in this module Expand all Collapse all v0 v0.2.0 Apr 21, 2026 Changes in this version + func Decoder[T any](b []byte, v *T) error + func Encoder[T any](v T) ([]byte, error) + func StreamDecoder[T any](r io.Reader, v *T) error + func StreamEncoder[T any](w io.Writer, v T) error v0.1.0 Apr 10, 2026 Changes in this version + type Codec struct + func NewCodec[T any]() *Codec[T] + func (Codec[T]) Decode(b []byte, v *T) error + func (Codec[T]) Encode(v T) ([]byte, error) + type StreamCodec struct + func NewStreamCodec[T any]() *StreamCodec[T] + func (StreamCodec[T]) Decode(r io.Reader, v *T) error + func (StreamCodec[T]) Encode(w io.Writer, v T) error