mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
Implement io_limit
This commit is contained in:
1 parent
58c30e9d6d
commit
78c7087eee
6 files changed
+152
-55
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user