aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-01-30 10:07:53 +0100
committerGravatar Runxi Yu2026-01-30 10:07:53 +0100
commitfec9ae3fb09f51b0381fd8d8f81565871087cec4 (patch)
treec3a2fb61509fbea6da1dd2003ce4c3016c8a2fd3
parentdiffbytes: Move to its own package (diff)
signatureNo signature
zlibx: Make DecompressSized's return int more obviously mean consumed
-rw-r--r--internal/zlibx/decompress.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/zlibx/decompress.go b/internal/zlibx/decompress.go
index 6bb5d45c..126c1fcb 100644
--- a/internal/zlibx/decompress.go
+++ b/internal/zlibx/decompress.go
@@ -14,7 +14,7 @@ func Decompress(src []byte) (bufpool.Buffer, error) {
return out, err
}
-func DecompressSized(src []byte, sizeHint int) (bufpool.Buffer, int, error) {
+func DecompressSized(src []byte, sizeHint int) (buf bufpool.Buffer, consumed int, err error) {
if len(src) < 6 {
return bufpool.Buffer{}, 0, io.ErrUnexpectedEOF
}