Skip to main content

build_macbinary

Function build_macbinary 

Source
pub fn build_macbinary(
    filename: &str,
    type_code: &[u8; 4],
    creator_code: &[u8; 4],
    dates: MacFileDates,
    data_fork: &[u8],
    rsrc_data: &[u8],
) -> Vec<u8> ⓘ
Expand description

Build a MacBinary III file containing both data and resource forks.

Format: 128-byte header + data fork (padded to 128) + resource fork (padded to 128). The .bin file replaces the separate data fork file.