Versions in this module Expand all Collapse all v1 v1.0.0 Jun 15, 2021 Changes in this version + var ErrCorrupt = errors.New("snappy: corrupt input") + var ErrTooLarge = errors.New("snappy: decoded block is too large") + var ErrUnsupported = errors.New("snappy: unsupported input") + func Decode(dst, src []byte) ([]byte, error) + func DecodedLen(src []byte) (int, error) + func Encode(dst, src []byte) []byte + func MaxEncodedLen(srcLen int) int + type Reader struct + func NewReader(r io.Reader) *Reader + func (r *Reader) Read(p []byte) (int, error) + func (r *Reader) Reset(reader io.Reader) + type Writer struct + func NewBufferedWriter(w io.Writer) *Writer + func NewWriter(w io.Writer) *Writer + func (w *Writer) Close() error + func (w *Writer) Flush() error + func (w *Writer) Reset(writer io.Writer) + func (w *Writer) Write(p []byte) (nRet int, errRet error)