mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Add a copy_history32 method.
This commit is contained in:
1 parent
d7cb39b766
commit
d2aca16f3c
7 files changed
+109
-51
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user