mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Have various structs implement base.io_transformer
This commit is contained in:
1 parent
e9fa8d3c28
commit
92a5bfd7ec
10 files changed
+193
-4
No files matched your search
@@ -65,7 +65,7 @@ pri const dcode_magic_numbers array[32] base.u32 = [
|
||||
pri const huffs_table_size base.u32 = 1024
|
||||
pri const huffs_table_mask base.u32 = 1023
|
||||
|
||||
pub struct decoder?(
|
||||
pub struct decoder? implements base.io_transformer(
|
||||
// These fields yield src's bits in Least Significant Bits order.
|
||||
bits : base.u32,
|
||||
n_bits : base.u32,
|
||||
|
||||
@@ -23,7 +23,7 @@ pub status "#bad header"
|
||||
// TODO: reference deflate.decoder_workbuf_len_max_incl_worst_case.
|
||||
pub const decoder_workbuf_len_max_incl_worst_case base.u64 = 1
|
||||
|
||||
pub struct decoder?(
|
||||
pub struct decoder? implements base.io_transformer(
|
||||
ignore_checksum : base.bool,
|
||||
checksum : crc32.ieee_hasher,
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ pri status "#internal error: inconsistent I/O"
|
||||
// - 3056a84 Roll back 3 recent lzw.decoder.suffixes commits
|
||||
pub const decoder_workbuf_len_max_incl_worst_case base.u64 = 0
|
||||
|
||||
pub struct decoder?(
|
||||
pub struct decoder? implements base.io_transformer(
|
||||
// set_literal_width_arg is 1 plus the saved argument passed to
|
||||
// set_literal_width. This is assigned to the literal_width field at the
|
||||
// start of transform_io. During that method, calling set_literal_width
|
||||
|
||||
@@ -26,7 +26,7 @@ pub status "#incorrect dictionary"
|
||||
// TODO: reference deflate.decoder_workbuf_len_max_incl_worst_case.
|
||||
pub const decoder_workbuf_len_max_incl_worst_case base.u64 = 1
|
||||
|
||||
pub struct decoder?(
|
||||
pub struct decoder? implements base.io_transformer(
|
||||
bad_call_sequence : base.bool,
|
||||
header_complete : base.bool,
|
||||
|
||||
|
||||
Reference in new issue
Block a user