Versions in this module Expand all Collapse all v2 v2.0.0 Feb 20, 2024 Changes in this version + var ErrCorrupt = errors.New("snappy: corrupt input") + 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, error) + 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 NewWriter(w io.Writer) *Writer + func (w *Writer) Reset(writer io.Writer) + func (w *Writer) Write(p []byte) (n int, errRet error)