mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Have copy_from return the number of bytes copied.
This commit is contained in:
1 parent
a9bdeee7c1
commit
f1643be221
9 files changed
+38
-28
No files matched your search
@@ -118,7 +118,7 @@ pub func decoder.decode?(dst writer1, src reader1)() {
|
||||
this.history_index = 32 * 1024
|
||||
} else {
|
||||
// TODO: fill part of the history.
|
||||
this.history[this.history_index & 0x7FFF:].copy_from(s:written)
|
||||
var n u64 = this.history[this.history_index & 0x7FFF:].copy_from(s:written)
|
||||
}
|
||||
}
|
||||
return z
|
||||
|
||||
Reference in new issue
Block a user