Documentation
¶
Index ¶
- type LzmaCompressor
- func (lzma *LzmaCompressor) Compress(data []byte) ([]byte, error)
- func (lzma *LzmaCompressor) CompressWithValidation(data []byte) ([]byte, error)
- func (lzma *LzmaCompressor) Decompress(data []byte) ([]byte, error)
- func (lzma *LzmaCompressor) DecompressWithValidation(data []byte) ([]byte, error)
- func (lzma *LzmaCompressor) GetCompressionRatio(original, compressed []byte) float64
- type Match
- type ZlibCompressor
- func (z *ZlibCompressor) CalculateCrc32(data []byte) uint32
- func (z *ZlibCompressor) Compress(data []byte) ([]byte, error)
- func (z *ZlibCompressor) CompressWithValidation(data []byte) ([]byte, error)
- func (z *ZlibCompressor) Decompress(data []byte) ([]byte, error)
- func (z *ZlibCompressor) DecompressWithValidation(data []byte) ([]byte, error)
- func (z *ZlibCompressor) GetCompressionRatio(original, compressed []byte) float64
- func (z *ZlibCompressor) GetLevel() int
- func (z *ZlibCompressor) SetLevel(level int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LzmaCompressor ¶
type LzmaCompressor struct {
// contains filtered or unexported fields
}
func NewLzmaCompressor ¶
func NewLzmaCompressor() *LzmaCompressor
func (*LzmaCompressor) CompressWithValidation ¶
func (lzma *LzmaCompressor) CompressWithValidation(data []byte) ([]byte, error)
func (*LzmaCompressor) Decompress ¶
func (lzma *LzmaCompressor) Decompress(data []byte) ([]byte, error)
func (*LzmaCompressor) DecompressWithValidation ¶
func (lzma *LzmaCompressor) DecompressWithValidation(data []byte) ([]byte, error)
func (*LzmaCompressor) GetCompressionRatio ¶
func (lzma *LzmaCompressor) GetCompressionRatio(original, compressed []byte) float64
type ZlibCompressor ¶
type ZlibCompressor struct {
// contains filtered or unexported fields
}
func NewZlibCompressor ¶
func NewZlibCompressor() *ZlibCompressor
func (*ZlibCompressor) CalculateCrc32 ¶
func (z *ZlibCompressor) CalculateCrc32(data []byte) uint32
func (*ZlibCompressor) CompressWithValidation ¶
func (z *ZlibCompressor) CompressWithValidation(data []byte) ([]byte, error)
func (*ZlibCompressor) Decompress ¶
func (z *ZlibCompressor) Decompress(data []byte) ([]byte, error)
func (*ZlibCompressor) DecompressWithValidation ¶
func (z *ZlibCompressor) DecompressWithValidation(data []byte) ([]byte, error)
func (*ZlibCompressor) GetCompressionRatio ¶
func (z *ZlibCompressor) GetCompressionRatio(original, compressed []byte) float64
func (*ZlibCompressor) GetLevel ¶
func (z *ZlibCompressor) GetLevel() int
func (*ZlibCompressor) SetLevel ¶
func (z *ZlibCompressor) SetLevel(level int) error
Click to show internal directories.
Click to hide internal directories.