Add a std/flate decode_blocks method.

This commit is contained in:
Nigel Tao committed 2017-08-31 11:16:23 +10:00
1 parent b328529e00
commit 209178a2c6
6 files changed
+64 -10

No files matched your search

+5
View File
@@ -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,