Rename writer1.slice to writer1.since_mark.

This commit is contained in:
Nigel Tao committed 2017-10-26 13:03:19 +11:00
1 parent bdfe4abbd3
commit 5052b16f2d
7 files changed
+18 -23

No files matched your search

+1 -4
View File
@@ -50,10 +50,7 @@ pub func zlib_decoder.decode?(dst writer1, src reader1)() {
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.
//
// TODO: in.dst.slice needs a previous mark statement. Do that, and
// remove the b_wstart_dst derived variables.
checksum = this.adler.update(x:in.dst.slice())
checksum = this.adler.update(x:in.dst.since_mark())
if z.is_ok() {
break
}