mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
Add decoder.workbuf_len methods
This commit is contained in:
1 parent
de5b64a846
commit
b9cbce9779
5 files changed
+124
No files matched your search
@@ -56,12 +56,18 @@ pub struct decoder?(
|
||||
// output[output_ri:output_wi] is the buffered output, connecting read_from
|
||||
// with write_to and flush.
|
||||
output array[8192 + 7] base.u8,
|
||||
|
||||
util base.utility,
|
||||
)
|
||||
|
||||
pub func decoder.set_literal_width!(lw base.u32[2..8]) {
|
||||
this.lw = args.lw
|
||||
}
|
||||
|
||||
pub func decoder.workbuf_len() base.range_ii_u64 {
|
||||
return this.util.make_range_ii_u64(min_incl:0, max_incl:0)
|
||||
}
|
||||
|
||||
pub func decoder.decode_io_writer?(dst base.io_writer, src base.io_reader, workbuf slice base.u8) {
|
||||
var i base.u32[..8191]
|
||||
|
||||
|
||||
Reference in new issue
Block a user