pub fn parse_macbinary(data: &[u8]) -> Option<ImportedResourceFork>Expand description
Parse a MacBinary (II/III) file and extract both forks and Finder info.
MacBinary header (128 bytes):
[0]must be 0[1]filename length (1-63)[65..69]type code[69..73]creator code[83..87]data fork length (u32 BE)[87..91]resource fork length (u32 BE)[122]MacBinary version (129=II, 130=III)[124..126]CRC-16 of bytes 0-123 (MacBinary II+)
Returns None if the file doesn’t look like a valid MacBinary container.