mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
Rename mark to set_mark, part 1 of N
This commit is contained in:
1 parent
4afd7de09f
commit
bd12c54ab5
9 files changed
+15
-13
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user