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.
Auto Trait Implementations§
impl<'a> Freeze for MacBinary<'a>
impl<'a> RefUnwindSafe for MacBinary<'a>
impl<'a> Send for MacBinary<'a>
impl<'a> Sync for MacBinary<'a>
impl<'a> Unpin for MacBinary<'a>
impl<'a> UnwindSafe for MacBinary<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more