Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor interface { Encode(data, src []byte) []byte Decode(data, src []byte) ([]byte, error) }
func NewCompressor ¶
func NewCompressor(cType string) Compressor
type DirectCompressor ¶
type DirectCompressor struct{}
func NewDirectCompressor ¶
func NewDirectCompressor() *DirectCompressor
func (DirectCompressor) Encode ¶
func (DirectCompressor) Encode(data, src []byte) []byte
type SnappyCompressor ¶
type SnappyCompressor struct { }
func NewSnappyCompressor ¶
func NewSnappyCompressor() *SnappyCompressor
func (*SnappyCompressor) Decode ¶
func (s *SnappyCompressor) Decode(data, src []byte) ([]byte, error)
func (*SnappyCompressor) Encode ¶
func (s *SnappyCompressor) Encode(data, src []byte) []byte
type ZSTDCompressor ¶
func NewZSTDCompressor ¶
func NewZSTDCompressor() *ZSTDCompressor
func (*ZSTDCompressor) Encode ¶
func (zsc *ZSTDCompressor) Encode(data, src []byte) []byte
Click to show internal directories.
Click to hide internal directories.