Trait base64::engine::DecodeEstimate
source · pub trait DecodeEstimate {
fn decoded_length_estimate(&self) -> usize;
}
Expand description
The decode estimate used by an engine implementation. Users do not need to interact with this; it is only for engine implementors.
Implementors may store relevant data here when constructing this to avoid having to calculate them again during actual decoding.
Required Methods§
sourcefn decoded_length_estimate(&self) -> usize
fn decoded_length_estimate(&self) -> usize
Returns a conservative (err on the side of too big) estimate of the decoded length to use for pre-allocating buffers, etc.