mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +01:00
Generate code for "mark in.dst".
The generated code is ugly and the language design is not finalized, but the flate_backref_crosses_blocks test (testing a correctness bug) now passes. We can fix the ugliness in subsequent commits.
This commit is contained in:
1 parent
83c8faef4d
commit
21bbbd422f
11 files changed
+107
-24
No files matched your search
@@ -49,6 +49,9 @@ pub func zlib_decoder.decode?(dst writer1, src reader1)() {
|
||||
var z status = try this.flate.decode?(dst:in.dst, src:in.src)
|
||||
// TODO: expose some API to opt out of checksumming, trading off error
|
||||
// detection for throughput.
|
||||
//
|
||||
// TODO: in.dst.slice needs a previous mark statement. Do that, and
|
||||
// remove the b_wstart_dst derived variables.
|
||||
checksum = this.adler.update(x:in.dst.slice())
|
||||
if z.is_ok() {
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user