Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Appender ¶ added in v2.6.5
type Appender interface {
// Append appends the encoding of v to dst.
Append(dst []byte, v any) ([]byte, error)
}
Appender is an optional interface implemented by codecs that can append an encoded value to dst. It lets callers encode directly into a pooled buffer. Implementations may reallocate dst when its capacity is insufficient; callers detect that by comparing the returned length with the original capacity.
Click to show internal directories.
Click to hide internal directories.