pub struct MacBinaryFile {
pub filename: String,
pub type_code: [u8; 4],
pub creator_code: [u8; 4],
pub finder_flags: u16,
pub finder_location: (i16, i16),
pub finder_folder: i16,
pub create_date: u32,
pub modify_date: u32,
pub version: MacBinaryVersion,
pub data_fork: Vec<u8>,
pub resource_fork: Vec<u8>,
}Expand description
One Mac file recovered from a MacBinary stream: both forks plus the full Finder metadata the header carries.
Fields§
§filename: StringFilename (Mac Roman → UTF-8).
type_code: [u8; 4]4-byte Finder type code (fdType); may be all-zero.
creator_code: [u8; 4]4-byte Finder creator code (fdCreator); may be all-zero.
finder_flags: u16Full 16-bit Finder flags: high byte from $49, low byte from $65
(II/III) or $4A (I).
finder_location: (i16, i16)fdLocation (v, h) — Pascal Point convention (vertical first).
finder_folder: i16fdFldr — the window/folder ID the Finder displays the file in.
create_date: u32Creation date, Mac epoch (seconds since 1904-01-01, local time).
modify_date: u32Modification date, Mac epoch.
version: MacBinaryVersionWhich revision this stream identifies as.
data_fork: Vec<u8>Data fork bytes (may be empty).
resource_fork: Vec<u8>Resource fork bytes (may be empty).
Trait Implementations§
Source§impl Clone for MacBinaryFile
impl Clone for MacBinaryFile
Auto Trait Implementations§
impl Freeze for MacBinaryFile
impl RefUnwindSafe for MacBinaryFile
impl Send for MacBinaryFile
impl Sync for MacBinaryFile
impl Unpin for MacBinaryFile
impl UnsafeUnpin for MacBinaryFile
impl UnwindSafe for MacBinaryFile
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