Add a mark call to zlib_decoder.decode.

This commit is contained in:
Nigel Tao committed 2017-10-26 12:34:01 +11:00
1 parent 474a0d2ed7
commit 0d32b6cb47
2 files changed
+2

No files matched your search

+1
View File
@@ -46,6 +46,7 @@ pub func zlib_decoder.decode?(dst writer1, src reader1)() {
}
var checksum u32
while true {
in.dst.mark()
var z status = try this.flate.decode?(dst:in.dst, src:in.src)
// TODO: expose some API to opt out of checksumming, trading off error
// detection for throughput.