Generate C code for a non-trivial slice-of-slice.

This commit is contained in:
Nigel Tao committed 2017-09-29 17:07:41 +10:00
1 parent ead5e45ae7
commit 3b57548b0d
9 files changed
+221 -44

No files matched your search

+5
View File
@@ -119,6 +119,11 @@ pub func decoder.decode?(dst writer1, src reader1)() {
} else {
// TODO: fill part of the history.
var n u64 = this.history[this.history_index & 0x7FFF:].copy_from(s:written)
if n < written.length() {
written = written[n:]
n = this.history[:].copy_from(s:written)
}
// TODO: update this.history_index.
}
}
return z