Rename mark to set_mark, part 1 of N

This commit is contained in:
Nigel Tao committed 2018-05-12 14:17:26 +10:00
1 parent 4afd7de09f
commit bd12c54ab5
9 files changed
+15 -13

No files matched your search

+1 -1
View File
@@ -123,7 +123,7 @@ pub struct decoder?(
pub func decoder.decode?(dst base.io_writer, src base.io_reader)() {
while true {
in.dst.mark()
in.dst.set_mark()
var z base.status = try this.decode_blocks?(dst:in.dst, src:in.src)
if not z.is_suspension() {
return z
+1 -2
View File
@@ -319,8 +319,7 @@ pri func decoder.decode_id?(dst base.io_writer, src base.io_reader)() {
this.previous_lzw_decode_ended_abruptly = true
while true {
// TODO: should "mark" be "set_mark" or "set_mark_here"?
in.src.mark()
in.src.set_mark()
io_bind (in.src) {
in.src.set_limit(l:block_size)
var z base.status = try this.lzw.decode?(dst:in.dst, src:in.src)
+1 -1
View File
@@ -92,7 +92,7 @@ pub func decoder.decode?(dst base.io_writer, src base.io_reader)() {
var checksum_got base.u32
var decoded_length_got base.u32
while true {
in.dst.mark()
in.dst.set_mark()
var z base.status = try this.flate.decode?(dst:in.dst, src:in.src)
if not this.ignore_checksum {
checksum_got = this.checksum.update(x:in.dst.since_mark())
+1 -1
View File
@@ -52,7 +52,7 @@ pub func decoder.decode?(dst base.io_writer, src base.io_reader)() {
// Decode and checksum the DEFLATE-encoded payload.
var checksum_got base.u32
while true {
in.dst.mark()
in.dst.set_mark()
var z base.status = try this.flate.decode?(dst:in.dst, src:in.src)
if not this.ignore_checksum {
checksum_got = this.checksum.update(x:in.dst.since_mark())