mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Add an io_writer.set method
This commit is contained in:
1 parent
31cdcd7048
commit
0d54356b5c
12 files changed
+133
-1
No files matched your search
@@ -342,6 +342,7 @@ pri func decoder.decode_id?(dst base.io_writer, src base.io_reader)() {
|
||||
while true {
|
||||
var w base.io_writer
|
||||
io_bind (in.src, w) {
|
||||
w.set!(s:this.uncompressed[this.uncompressed_index:])
|
||||
// TODO: enforce that calling r.set_limit has a precondition
|
||||
// that r.is_bound(), and that you can't suspend inside an
|
||||
// io_bind? Otherwise, the cgen implementation becomes more
|
||||
|
||||
Reference in new issue
Block a user