pub struct MacBinary<'a> { /* private fields */ }Expand description
A parsed MacBinary file containing metadata, data fork (if present), and resource fork (if present)
Implementations§
source§impl MacBinary<'_>
impl MacBinary<'_>
sourcepub fn filename_bytes(&self) -> &[u8] ⓘ
pub fn filename_bytes(&self) -> &[u8] ⓘ
The raw filename bytes
sourcepub fn file_creator(&self) -> FourCC
pub fn file_creator(&self) -> FourCC
The file’s creator code
sourcepub fn resource_fork_raw(&self) -> &[u8] ⓘ
pub fn resource_fork_raw(&self) -> &[u8] ⓘ
Resource fork data
sourcepub fn resource_fork(&self) -> Result<Option<ResourceFork<'_>>, ParseError>
pub fn resource_fork(&self) -> Result<Option<ResourceFork<'_>>, ParseError>
Parsed resource fork
Note: Not all files have resource fork data. This method will return None if the resource fork is empty.