aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/golang/snappy/decode.go
diff options
context:
space:
mode:
authorale <ale@incal.net>2019-09-26 12:10:23 +0100
committerale <ale@incal.net>2019-09-26 12:10:23 +0100
commit97221e85d5ab47a1443a7aea0b0461bac5230854 (patch)
tree7a8fe4093e580f1db64822164fb406b866d2b402 /vendor/github.com/golang/snappy/decode.go
parent64eb5fb23f64f209e3d813e017097044a111151f (diff)
downloadcrawl-97221e85d5ab47a1443a7aea0b0461bac5230854.tar.gz
crawl-97221e85d5ab47a1443a7aea0b0461bac5230854.zip
Update vendored dependencies
Diffstat (limited to 'vendor/github.com/golang/snappy/decode.go')
-rw-r--r--vendor/github.com/golang/snappy/decode.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/golang/snappy/decode.go b/vendor/github.com/golang/snappy/decode.go
index 72efb03..f1e04b1 100644
--- a/vendor/github.com/golang/snappy/decode.go
+++ b/vendor/github.com/golang/snappy/decode.go
@@ -52,6 +52,8 @@ const (
// Otherwise, a newly allocated slice will be returned.
//
// The dst and src must not overlap. It is valid to pass a nil dst.
+//
+// Decode handles the Snappy block format, not the Snappy stream format.
func Decode(dst, src []byte) ([]byte, error) {
dLen, s, err := decodedLen(src)
if err != nil {
@@ -83,6 +85,8 @@ func NewReader(r io.Reader) *Reader {
}
// Reader is an io.Reader that can read Snappy-compressed bytes.
+//
+// Reader handles the Snappy stream format, not the Snappy block format.
type Reader struct {
r io.Reader
err error