mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
Add a std/flate decode_blocks method.
This commit is contained in:
1 parent
b328529e00
commit
209178a2c6
6 files changed
+64
-10
No files matched your search
@@ -90,6 +90,11 @@ pub struct decoder?(
|
||||
)
|
||||
|
||||
pub func decoder.decode?(dst writer1, src reader1)() {
|
||||
// TODO: copy from dst to history, if we aren't finished.
|
||||
this.decode_blocks?(dst:in.dst, src:in.src)
|
||||
}
|
||||
|
||||
pri func decoder.decode_blocks?(dst writer1, src reader1)() {
|
||||
var final u32
|
||||
while final == 0 {
|
||||
while this.n_bits < 3,
|
||||
|
||||
Reference in new issue
Block a user