compress

package
v0.0.0-...-260714d Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Compress

type Compress interface {
	Read(buf []byte) (int, error)
	Write(buf []byte) (int, error)
	Close() error
}

func NewNullCompressReader

func NewNullCompressReader(r io.ReadCloser) (Compress, error)

func NewNullCompressWriter

func NewNullCompressWriter(w io.WriteCloser) (Compress, error)

func NewS2CompressReader

func NewS2CompressReader(r io.ReadCloser) (Compress, error)

func NewS2CompressWriter

func NewS2CompressWriter(w io.WriteCloser) (Compress, error)

func NewZstdCompressReader

func NewZstdCompressReader(r io.ReadCloser) (Compress, error)

func NewZstdCompressWriter

func NewZstdCompressWriter(w io.WriteCloser) (Compress, error)

type NewCompressReaderFunc

type NewCompressReaderFunc func(r io.ReadCloser) (Compress, error)

type NewCompressWriterFunc

type NewCompressWriterFunc func(w io.WriteCloser) (Compress, error)

type NullCompress

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

func (*NullCompress) Close

func (n *NullCompress) Close() error

func (*NullCompress) Read

func (n *NullCompress) Read(buf []byte) (int, error)

func (*NullCompress) Write

func (n *NullCompress) Write(buf []byte) (int, error)

type S2

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

func (*S2) Close

func (s *S2) Close() error

func (*S2) Read

func (s *S2) Read(buf []byte) (int, error)

func (*S2) Write

func (s *S2) Write(buf []byte) (int, error)

type Zstd

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

func (*Zstd) Close

func (z *Zstd) Close() error

func (*Zstd) Read

func (z *Zstd) Read(buf []byte) (int, error)

func (*Zstd) Write

func (z *Zstd) Write(buf []byte) (int, error)

Jump to

Keyboard shortcuts

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