mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 16:32:11 +01:00
Add a TODO to add a checksum opt out API.
This commit is contained in:
1 parent
2639f8f46a
commit
1f9e391e7d
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user