Add a copy_history32 method.

This commit is contained in:
Nigel Tao committed 2017-07-28 11:25:03 +10:00
1 parent d7cb39b766
commit d2aca16f3c
7 files changed
+109 -51

No files matched your search

+4 -1
View File
@@ -231,7 +231,10 @@ pri func decoder.decode_huffman?(dst writer1, src reader1)() {
bits >>= table_entry_n_bits
n_bits -= table_entry_n_bits
// TODO: use length and distance.
// TODO: copy_history32 should also take some notion of how much of dst
// is valid. When copying from a distance greater than that, we also
// need to keep a sliding window of previous history.
in.dst.copy_history32?(distance:distance, length:length)
}
this.bits = bits