Add a TODO to add a checksum opt out API.

This commit is contained in:
Nigel Tao committed 2017-10-21 13:20:14 +11:00
1 parent 2639f8f46a
commit 1f9e391e7d
1 file changed
+2
+2
View File
@@ -40,6 +40,8 @@ pub func zlib_decoder.decode?(dst writer1, src reader1)() {
var checksum u32
while true {
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.
checksum = this.adler.update(x:in.dst.slice())
if z.is_ok() {
break