mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 16:47:28 +01:00
Generate C code for a non-trivial slice-of-slice.
This commit is contained in:
1 parent
ead5e45ae7
commit
3b57548b0d
9 files changed
+221
-44
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user