mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +01:00
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:
1 parent
b886e3a1ea
commit
a9ba7e85ac
10 files changed
+88
-20
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user