mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Add a lib/compression package
This commit is contained in:
1 parent
eac65a0084
commit
99197b3f09
5 files changed
+152
-16
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user