compress

package
v0.0.0-...-79c606f Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLZ4Compressor

func NewLZ4Compressor() sif.Compressor

NewLZ4Compressor instantiates a new LZ4Compressor

Types

type LZ4Compressor

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

LZ4Compressor is a compressor which uses the lz4 compression algorithm

func (*LZ4Compressor) Compress

func (lz4ps *LZ4Compressor) Compress(source io.Reader, dest io.Writer) error

Compress serializes and compresses data to a write stream

func (*LZ4Compressor) Decompress

func (lz4ps *LZ4Compressor) Decompress(source io.Reader, dest io.Writer) error

Decompress decompresses and deserializes data from a read stream

func (*LZ4Compressor) Destroy

func (lz4ps *LZ4Compressor) Destroy()

Destroy cleans up anything relevant when the Serializer is no longer needed

Jump to

Keyboard shortcuts

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