package
Version:
v0.0.0-...-3f4335e
Opens a new window with list of versions in this module.
Published: Aug 5, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Decoder interface {
Decode(r io.Reader, dst interface{}, numValues int) error
}
Decoder is the interface for decoding a slice of values from a reader.
type Encoder interface {
Encode(w io.Writer, src interface{}) error
}
Encoder is the interface for encoding a slice of values into a writer.
Fixed is an encoder/decoder for fixed-width data types.
It uses binary.Write and binary.Read for efficient serialization.
NewFixed creates a new Fixed encoder/decoder.
Decode reads a slice of fixed-width values from the reader.
Encode writes a slice of fixed-width values to the writer.
String is an encoder/decoder for string data.
It stores offsets first, then the concatenated string data.
NewString creates a new String encoder/decoder.
Decode reads a slice of strings from the reader.
Encode writes a slice of strings to the writer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.