Skip to main content

decode

Function decode 

Source
pub fn decode(data: &[u8]) -> Option<RawCfb>
Expand description

Decode a compound file’s header, FAT, mini-FAT, and directory array.

Returns None only when the buffer is too small to hold a header or lacks the OLECF signature; every field beyond that degrades to a safe default rather than failing, so partially-corrupt images still yield residue.