mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Add a writer1.length method.
This commit is contained in:
1 parent
e9df25d599
commit
d30d4c3dad
3 files changed
+16
-4
No files matched your search
@@ -341,6 +341,8 @@ pri func decoder.decode_huffman?(dst writer1, src reader1)() {
|
||||
// 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.
|
||||
if (distance as u64) > in.dst.length() {
|
||||
}
|
||||
in.dst.copy_history32?(distance:distance, length:length)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user