Implement io_limit

This commit is contained in:
Nigel Tao committed 2020-12-24 14:01:48 +11:00
1 parent 58c30e9d6d
commit 78c7087eee
6 files changed
+152 -55

No files matched your search

+6
View File
@@ -231,6 +231,12 @@ pub func decoder.decode_frame?(dst: ptr base.pixel_buffer, src: base.io_reader,
return base."@end of data"
}
while true {
io_limit (io: args.src, limit: this.chunk_length as base.u64) {
}
break
} endwhile
this.call_sequence = 0xFF
}