Add an io_writer.set method

This commit is contained in:
Nigel Tao committed 2018-05-13 11:42:28 +10:00
1 parent 31cdcd7048
commit 0d54356b5c
12 files changed
+133 -1

No files matched your search

+1
View File
@@ -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