From 0015c376a300ed5aaf5170f90159736a9e58212e Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 4 Mar 2020 16:53:39 -0500 Subject: Vendor buildah 1.14.2 Signed-off-by: Daniel J Walsh --- vendor/github.com/klauspost/compress/zstd/zstd.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'vendor/github.com/klauspost/compress/zstd/zstd.go') diff --git a/vendor/github.com/klauspost/compress/zstd/zstd.go b/vendor/github.com/klauspost/compress/zstd/zstd.go index 57a8a2f5b..5e0b64ccc 100644 --- a/vendor/github.com/klauspost/compress/zstd/zstd.go +++ b/vendor/github.com/klauspost/compress/zstd/zstd.go @@ -6,11 +6,20 @@ package zstd import ( "errors" "log" + "math" "math/bits" ) +// enable debug printing const debug = false + +// Enable extra assertions. +const debugAsserts = debug || false + +// print sequence details const debugSequences = false + +// print detailed matching information const debugMatches = false // force encoder to use predefined tables. @@ -19,6 +28,9 @@ const forcePreDef = false // zstdMinMatch is the minimum zstd match length. const zstdMinMatch = 3 +// Reset the buffer offset when reaching this. +const bufferReset = math.MaxInt32 - MaxWindowSize + var ( // ErrReservedBlockType is returned when a reserved block type is found. // Typically this indicates wrong or corrupted input. -- cgit v1.2.3-54-g00ecf