Versions in this module Expand all Collapse all v0 v0.0.4 Jul 14, 2020 Changes in this version + const BestCompression + const BestSpeed + const DEFAULT_COMPRESSED_BUFFER_SIZE + const DefaultCompression + const NoCompression + const Z_BLOCK + const Z_BUF_ERROR + const Z_DATA_ERROR + const Z_ERRNO + const Z_FINISH + const Z_FULL_FLUSH + const Z_MEM_ERROR + const Z_NEED_DICT + const Z_NO_FLUSH + const Z_OK + const Z_PARTIAL_FLUSH + const Z_STREAM_END + const Z_STREAM_ERROR + const Z_SYNC_FLUSH + const Z_TREES + const Z_VERSION_ERROR + var ErrChecksum = zlib.ErrChecksum + var ErrDictionary = zlib.ErrDictionary + var ErrHeader = zlib.ErrHeader + func Compress(input []byte) ([]byte, error) + func Decompress(input []byte) ([]byte, error) + func NewReader(r io.Reader) (io.ReadCloser, error) + func NewReaderBuffer(r io.Reader, bufferSize int) (io.ReadCloser, error) + type UnsafeByte []byte + func NewUnsafeByte(p *C.char, length int) UnsafeByte + func UnsafeCompress(input []byte) (UnsafeByte, error) + func UnsafeDecompress(input []byte) (UnsafeByte, error) + func (b UnsafeByte) Free() + type Writer struct + func NewWriter(w io.Writer) *Writer + func NewWriterLevel(w io.Writer, level int) (*Writer, error) + func NewWriterLevelBuffer(w io.Writer, level, bufferSize int) (*Writer, error) + func (z *Writer) Close() error + func (z *Writer) Flush() error + func (z *Writer) Write(p []byte) (n int, err error)