mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Use WUFFS_BASE__QUIRK_IGNORE_CHECKSUM
This commit is contained in:
1 parent
b2fe296a43
commit
0de64ee8b7
7 files changed
+47
-3
No files matched your search
@@ -37,6 +37,9 @@ pub func decoder.set_ignore_checksum!(ic: base.bool) {
|
||||
}
|
||||
|
||||
pub func decoder.set_quirk_enabled!(quirk: base.u32, enabled: base.bool) {
|
||||
if args.quirk == base.QUIRK_IGNORE_CHECKSUM {
|
||||
this.ignore_checksum = args.enabled
|
||||
}
|
||||
}
|
||||
|
||||
pub func decoder.workbuf_len() base.range_ii_u64 {
|
||||
|
||||
@@ -99,6 +99,10 @@ pub func decoder.set_ignore_checksum!(ic: base.bool) {
|
||||
}
|
||||
|
||||
pub func decoder.set_quirk_enabled!(quirk: base.u32, enabled: base.bool) {
|
||||
if args.quirk == base.QUIRK_IGNORE_CHECKSUM {
|
||||
this.ignore_checksum = args.enabled
|
||||
this.zlib.set_quirk_enabled!(quirk: args.quirk, enabled: args.enabled)
|
||||
}
|
||||
}
|
||||
|
||||
pub func decoder.decode_image_config?(dst: nptr base.image_config, src: base.io_reader) {
|
||||
|
||||
@@ -64,6 +64,9 @@ pub func decoder.set_ignore_checksum!(ic: base.bool) {
|
||||
}
|
||||
|
||||
pub func decoder.set_quirk_enabled!(quirk: base.u32, enabled: base.bool) {
|
||||
if args.quirk == base.QUIRK_IGNORE_CHECKSUM {
|
||||
this.ignore_checksum = args.enabled
|
||||
}
|
||||
}
|
||||
|
||||
pub func decoder.workbuf_len() base.range_ii_u64 {
|
||||
|
||||
Reference in new issue
Block a user