mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +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
@@ -121,8 +121,16 @@ pub struct decoder?(
|
||||
//
|
||||
// TODO: can decode_huffman_xxx signal this in band instead of out of band?
|
||||
end_of_block base.bool,
|
||||
|
||||
util base.utility,
|
||||
)
|
||||
|
||||
pub func decoder.workbuf_len() base.range_ii_u64 {
|
||||
return this.util.make_range_ii_u64(
|
||||
min_incl:decoder_workbuf_len_max_incl,
|
||||
max_incl:decoder_workbuf_len_max_incl)
|
||||
}
|
||||
|
||||
pub func decoder.decode_io_writer?(dst base.io_writer, src base.io_reader, workbuf slice base.u8) {
|
||||
var status base.status
|
||||
var written slice base.u8
|
||||
|
||||
Reference in new issue
Block a user