mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Restore rac's CompressedSize to avoid Seek calls
This commit is contained in:
1 parent
f53bee37ba
commit
ca4a6c8846
8 files changed
+68
-54
No files matched your search
@@ -71,8 +71,9 @@ func Example_roundTrip() {
|
||||
|
||||
// Prepare to decompress.
|
||||
r := &rac.Reader{
|
||||
ReadSeeker: bytes.NewReader(compressed),
|
||||
CodecReaders: []rac.CodecReader{&raczlib.CodecReader{}},
|
||||
ReadSeeker: bytes.NewReader(compressed),
|
||||
CompressedSize: int64(len(compressed)),
|
||||
CodecReaders: []rac.CodecReader{&raczlib.CodecReader{}},
|
||||
}
|
||||
|
||||
// Read the whole file.
|
||||
|
||||
Reference in new issue
Block a user