Fixed issues with decompress.Decoder

This commit is contained in:
Caleb Gardner
2023-01-05 01:29:23 -06:00
parent 089ef53c8c
commit ce2e45ceec
4 changed files with 4 additions and 13 deletions
-9
View File
@@ -16,12 +16,3 @@ func (l Lz4) Reset(old, src io.Reader) error {
old.(*lz4.Reader).Reset(src)
return nil
}
func (l Lz4) Decode(in []byte, outSize int) (out []byte, err error) {
out = make([]byte, outSize)
outLen, err := lz4.UncompressBlock(in, out)
if outLen < outSize {
out = out[:outLen]
}
return
}