Versions in this module Expand all Collapse all v1 v1.0.1 Aug 28, 2017 Changes in this version + const Extension + const Version + var ErrInvalid = errors.New("invalid lz4 data") + var ErrInvalidSource = errors.New("lz4: invalid source") + var ErrShortBuffer = errors.New("lz4: short buffer") + func CompressBlock(src, dst []byte, soffset int) (int, error) + func CompressBlockBound(n int) int + func CompressBlockHC(src, dst []byte, soffset int) (int, error) + func UncompressBlock(src, dst []byte, di int) (int, error) + type Header struct + BlockChecksum bool + BlockDependency bool + BlockMaxSize int + HighCompression bool + NoChecksum bool + Size uint64 + type Reader struct + Pos int64 + func NewReader(src io.Reader) *Reader + func (z *Reader) Read(buf []byte) (n int, err error) + func (z *Reader) Reset(r io.Reader) + func (z *Reader) WriteTo(w io.Writer) (n int64, err error) + type Writer struct + func NewWriter(dst io.Writer) *Writer + func (z *Writer) Close() error + func (z *Writer) Flush() error + func (z *Writer) ReadFrom(r io.Reader) (n int64, err error) + func (z *Writer) Reset(w io.Writer) + func (z *Writer) Write(buf []byte) (n int, err error)