var (
// ErrCorrupt reports that the input is invalid. ErrCorrupt = errors.New("snappy: corrupt input")
// ErrTooLarge reports that the uncompressed length is too large. ErrTooLarge = errors.New("snappy: decoded block is too large")
// ErrUnsupported reports that the input isn't supported. ErrUnsupported = errors.New("snappy: unsupported input")
)
Decode returns the decoded form of src. The returned slice may be a sub-
slice of dst if dst was large enough to hold the entire decoded block.
Otherwise, a newly allocated slice will be returned.
The dst and src must not overlap. It is valid to pass a nil dst.
Encode returns the encoded form of src. The returned slice may be a sub-
slice of dst if dst was large enough to hold the entire encoded block.
Otherwise, a newly allocated slice will be returned.
The dst and src must not overlap. It is valid to pass a nil dst.
Reset discards any buffered data, resets all state, and switches the Snappy
reader to read from r. This permits reusing a Reader rather than allocating
a new one.
The Writer returned buffers writes. Users must call Close to guarantee all
data has been forwarded to the underlying io.Writer. They may also call
Flush zero or more times before calling Close.
NewWriter returns a new Writer that compresses to w.
The Writer returned does not buffer writes. There is no need to Flush or
Close such a Writer.
Deprecated: the Writer returned is not suitable for many small writes, only
for few large writes. Use NewBufferedWriter instead, which is efficient
regardless of the frequency and shape of the writes, and remember to Close
that Writer when done.