mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +01:00
Change flate block_size from u8 to u64.
This commit is contained in:
1 parent
c0c023e1cf
commit
51012a0cca
3 files changed
+7
-7
No files matched your search
@@ -156,14 +156,14 @@ pri func decoder.decode_id?(dst writer1, src reader1)() {
|
||||
|
||||
// TODO: pass the data blocks' payload to this.lzw.
|
||||
while true {
|
||||
var block_size u8 = in.src.read_u8?()
|
||||
var block_size u64 = in.src.read_u8?() as u64
|
||||
if block_size == 0 {
|
||||
break
|
||||
}
|
||||
// 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.
|
||||
var lzw_src reader1 = limit (block_size as u64) in.src
|
||||
var lzw_src reader1 = limit (block_size) in.src
|
||||
this.lzw.decode?(dst:in.dst, src:lzw_src)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user