Add a lib/compression package

This commit is contained in:
Nigel Tao committed 2019-09-14 11:01:08 +10:00
1 parent eac65a0084
commit 99197b3f09
5 files changed
+152 -16

No files matched your search

+2 -1
View File
@@ -20,6 +20,7 @@ import (
"compress/zlib"
"io"
"github.com/google/wuffs/lib/compression"
"github.com/google/wuffs/lib/rac"
)
@@ -36,6 +37,6 @@ func (r *CodecReader) MakeDecompressor(compressed io.Reader, rctx rac.ReaderCont
if err != nil {
return nil, err
}
r.cachedZlibReader = zlibReader.(resetReadCloser)
r.cachedZlibReader = zlibReader.(compression.Reader)
return zlibReader, nil
}