compress

package
v0.0.0-...-6c626af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeGob

func DeserializeGob(data []byte) (interface{}, error)

func SerializeGob

func SerializeGob(v any) ([]byte, error)

Types

type Compressor

type Compressor interface {
	Compress(data []byte) ([]byte, error)
	Decompress(data []byte) ([]byte, error)
}

type ZstdCompressor

type ZstdCompressor struct {
	// contains filtered or unexported fields
}

func NewZstdCompressor

func NewZstdCompressor() (*ZstdCompressor, error)

func (*ZstdCompressor) Compress

func (z *ZstdCompressor) Compress(data []byte) ([]byte, error)

func (*ZstdCompressor) Decompress

func (z *ZstdCompressor) Decompress(data []byte) ([]byte, error)

func (*ZstdCompressor) IsCompressed

func (z *ZstdCompressor) IsCompressed(data []byte) bool

IsCompressed checks if data is zstd-compressed (simplified check)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL