diff options
| author | 2026-01-30 10:07:53 +0100 | |
|---|---|---|
| committer | 2026-01-30 10:07:53 +0100 | |
| commit | fec9ae3fb09f51b0381fd8d8f81565871087cec4 (patch) | |
| tree | c3a2fb61509fbea6da1dd2003ce4c3016c8a2fd3 | |
| parent | diffbytes: Move to its own package (diff) | |
| signature | No signature | |
zlibx: Make DecompressSized's return int more obviously mean consumed
| -rw-r--r-- | internal/zlibx/decompress.go | 2 |
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 } |
