Documentation
¶
Index ¶
- type Codec
- func (c *Codec) Compress(data []byte) ([]byte, error)
- func (c *Codec) Decode(data []byte, value interface{}) error
- func (c *Codec) Decompress(compressed []byte) ([]byte, error)
- func (c *Codec) Encode(value interface{}) ([]byte, error)
- func (c *Codec) Marshal(value interface{}) ([]byte, error)
- func (c *Codec) Unmarshal(compressed []byte, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
Codec encodes and decodes Go values using cbor encoding and zstandard compression.
func (*Codec) Decompress ¶
Decompress reads compressed data that uses the zstandard format and returns the original uncompressed byte slice.
Click to show internal directories.
Click to hide internal directories.