Struct Configuration
pub struct Configuration { /* private fields */ }
Describes the static parameters for creating a decoder.
Implementations
impl Configuration
fn new(order: BitOrder, size: u8) -> SelfCreate a configuration to decode with the specified bit order and symbol size.
fn with_tiff_size_switch(order: BitOrder, size: u8) -> SelfCreate a configuration for a TIFF compatible decoder.
fn with_yield_on_full_buffer(self, do_yield: bool) -> SelfImmediately yield to the caller when the decoder buffer is full.
This can be used for
libtiffcompatibility. It will use a "relaxed" stream interpretation that need not contain an explicit EOF. Instead, the decoder is expected to stop fetching symbols when some out-of-band specified length of the decoded text has been reached. The caller indicates this maximum length through the available output buffer space.Symbols afterwards must not be expected to be valid. On filling the output buffer space completely, the decoder will return immediately to the caller instead of potentially interpreting the following bit-stream (and returning an error on doing so).
Default:
false.fn build(self) -> DecoderCreate a new decoder with the define configuration.
Trait Implementations
impl Clone for Configuration
fn clone(&self) -> Self
impl Debug for Configuration
fn fmt(&self, f: &mut Formatter<'_>) -> Result