aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/golang/snappy/encode.go
diff options
context:
space:
mode:
authorale <ale@incal.net>2021-06-19 16:43:43 +0100
committerale <ale@incal.net>2021-06-19 16:43:43 +0100
commit833da3f33a5c727a8d7ccd034c43497c66793026 (patch)
tree2963588cf4fc88f77a39f2a4ab535a5bb44756a9 /vendor/github.com/golang/snappy/encode.go
parenta3019b1703b29e74cfb8fd71b9f79b0c1da11395 (diff)
downloadcrawl-833da3f33a5c727a8d7ccd034c43497c66793026.tar.gz
crawl-833da3f33a5c727a8d7ccd034c43497c66793026.zip
go mod vendor
Diffstat (limited to 'vendor/github.com/golang/snappy/encode.go')
-rw-r--r--vendor/github.com/golang/snappy/encode.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/vendor/github.com/golang/snappy/encode.go b/vendor/github.com/golang/snappy/encode.go
index 7f23657..8d393e9 100644
--- a/vendor/github.com/golang/snappy/encode.go
+++ b/vendor/github.com/golang/snappy/encode.go
@@ -15,8 +15,6 @@ import (
// Otherwise, a newly allocated slice will be returned.
//
// The dst and src must not overlap. It is valid to pass a nil dst.
-//
-// Encode handles the Snappy block format, not the Snappy stream format.
func Encode(dst, src []byte) []byte {
if n := MaxEncodedLen(len(src)); n < 0 {
panic(ErrTooLarge)
@@ -141,8 +139,6 @@ func NewBufferedWriter(w io.Writer) *Writer {
}
// Writer is an io.Writer that can write Snappy-compressed bytes.
-//
-// Writer handles the Snappy stream format, not the Snappy block format.
type Writer struct {
w io.Writer
err error