Add reader1.limitt and writer1.limitt methods.

The "limitt" typo will be renamed to "limit" once we remove the keyword
named "limit".
This commit is contained in:
Nigel Tao committed 2017-10-26 15:06:59 +11:00
1 parent b886e3a1ea
commit a9ba7e85ac
10 files changed
+88 -20

No files matched your search

+1
View File
@@ -164,6 +164,7 @@ pri func decoder.decode_id?(dst writer1, src reader1)() {
}
while true {
in.src.mark()
in.src.limitt(l:block_size)
// TODO: how should this reader1-typed variable (which is implemented
// by containing pointers) work across resume/suspend? We don't want to
// have a dangling pointer to an earlier src buffer.