mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Add a "limit" keyword.
This commit is contained in:
1 parent
1d39b1e173
commit
7a3ddbc025
14 files changed
+204
-29
No files matched your search
@@ -149,6 +149,7 @@ pri func decoder.decode_id?(dst writer1, src reader1)() {
|
||||
if block_size == 0 {
|
||||
break
|
||||
}
|
||||
in.src.skip32?(n:block_size as u32)
|
||||
var lzw_src reader1 = limit (block_size as u64) in.src
|
||||
this.lzw.decode?(dst:in.dst, src:lzw_src)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user