pub trait StreamDecoder: Debug {
// Required method
fn decode(
&self,
input: &[u8],
params: &DecodeParams,
limits: &ResourceLimits,
) -> Result<DecoderOutput, ParseError>;
}Expand description
Stream decoder extension point used by DecoderRegistry.
Required Methods§
Sourcefn decode(
&self,
input: &[u8],
params: &DecodeParams,
limits: &ResourceLimits,
) -> Result<DecoderOutput, ParseError>
fn decode( &self, input: &[u8], params: &DecodeParams, limits: &ResourceLimits, ) -> Result<DecoderOutput, ParseError>
Decodes one PDF stream filter under parser resource limits.
§Errors
Returns ParseError when the encoded bytes are malformed or the
decoded output exceeds configured limits.