mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Generate C code for an_array[:].
This commit is contained in:
1 parent
f107ec155d
commit
a9f12c23a4
6 files changed
+70
-16
No files matched your search
@@ -114,8 +114,7 @@ pub func decoder.decode?(dst writer1, src reader1)() {
|
||||
var written[] u8 = in.dst.slice()
|
||||
if written.length() >= (32 * 1024) {
|
||||
written = written.suffix(up_to:32 * 1024)
|
||||
// TODO: change this.history to this.history[:].
|
||||
this.history.copy_from(s:written)
|
||||
this.history[:].copy_from(s:written)
|
||||
this.history_index = 32 * 1024
|
||||
} else {
|
||||
// TODO: fill part of the history.
|
||||
|
||||
Reference in new issue
Block a user