Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bzip2Codec ¶
type Bzip2Codec struct{}
func (Bzip2Codec) Decode ¶
func (c Bzip2Codec) Decode(t []byte) []byte
func (Bzip2Codec) Encode ¶
func (c Bzip2Codec) Encode(f []byte) []byte
type CompositeCodec ¶
type CompositeCodec[F0, F1, T any] struct { // contains filtered or unexported fields }
func Compose ¶
func Compose[F0, F1, T any](c0 Codec[F0, F1], c1 Codec[F1, T]) CompositeCodec[F0, F1, T]
func (CompositeCodec[F0, F1, T]) Decode ¶
func (d CompositeCodec[F0, F1, T]) Decode(t T) F0
func (CompositeCodec[F0, F1, T]) Encode ¶
func (e CompositeCodec[F0, F1, T]) Encode(f F0) T
type CompositeDecoder ¶
type CompositeDecoder[F0, F1, T any] struct { // contains filtered or unexported fields }
func (CompositeDecoder[F0, F1, T]) Decode ¶
func (d CompositeDecoder[F0, F1, T]) Decode(t T) F0
type CompositeEncoder ¶
type CompositeEncoder[F0, F1, T any] struct { // contains filtered or unexported fields }
func (CompositeEncoder[F0, F1, T]) Encode ¶
func (e CompositeEncoder[F0, F1, T]) Encode(f F0) T
type InvertCodec ¶
type InvertCodec[F, T any] struct { // contains filtered or unexported fields }
func Invert ¶
func Invert[F, T any](c Codec[F, T]) InvertCodec[T, F]
func (InvertCodec[F, T]) Decode ¶
func (c InvertCodec[F, T]) Decode(t T) F
func (InvertCodec[F, T]) Encode ¶
func (c InvertCodec[F, T]) Encode(f F) T
Click to show internal directories.
Click to hide internal directories.