Add a writer1.length method.

This commit is contained in:
Nigel Tao committed 2017-10-06 14:17:01 +11:00
1 parent e9df25d599
commit d30d4c3dad
3 files changed
+16 -4

No files matched your search

+2
View File
@@ -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)
}