Rename decoder_max_incl_workbuf_len constants

This commit is contained in:
Nigel Tao committed 2019-02-03 15:44:25 +11:00
1 parent d9c36922db
commit fc4abafbe7
9 files changed
+32 -32

No files matched your search

+4 -4
View File
@@ -22,8 +22,8 @@ pub status "?bad parity check"
pri status "?TODO: unsupported preset dictionary"
// TODO: reference deflate.decoder_workbuf_len_max_incl.
pub const decoder_workbuf_len_max_incl base.u64 = 32768 + 512
// TODO: reference deflate.decoder_workbuf_len_max_incl_worst_case.
pub const decoder_workbuf_len_max_incl_worst_case base.u64 = 32768 + 512
pub struct decoder?(
flate deflate.decoder,
@@ -38,8 +38,8 @@ pub func decoder.set_ignore_checksum!(ic base.bool) {
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)
min_incl:decoder_workbuf_len_max_incl_worst_case,
max_incl:decoder_workbuf_len_max_incl_worst_case)
}
pub func decoder.decode_io_writer?(dst base.io_writer, src base.io_reader, workbuf slice base.u8) {