Skip to main content

decode_stream

Function decode_stream 

pub fn decode_stream(
    stream: &mut impl Read,
) -> Result<Codec<'_>, SkCodec_Result>
Expand description

Attempts to decode the given bytes as a BMP.

If the bytes are not a BMP, returns an error Result explaining the reason for the failure.