pub struct EntryBlock {Show 19 fields
pub block_type: i32,
pub header_key: u32,
pub high_seq: i32,
pub first_data: u32,
pub checksum: u32,
pub hash_table: [u32; 72],
pub access: u32,
pub byte_size: u32,
pub comment_len: u8,
pub comment: [u8; 79],
pub date: AmigaDate,
pub name_len: u8,
pub name: [u8; 30],
pub real_entry: u32,
pub next_link: u32,
pub next_same_hash: u32,
pub parent: u32,
pub extension: u32,
pub sec_type: i32,
}Expand description
Parsed entry block (file header or directory).
Fields§
§block_type: i32Block type (should be T_HEADER).
header_key: u32This block’s sector number.
high_seq: i32High sequence (number of data blocks in this header for files).
first_data: u32First data block (files only).
checksum: u32Checksum.
hash_table: [u32; 72]Hash table (directories) or data block pointers (files).
access: u32Access flags.
byte_size: u32File size in bytes (files only).
comment_len: u8Comment length.
comment: [u8; 79]Comment (up to 79 chars).
date: AmigaDateLast modification date.
name_len: u8Name length.
name: [u8; 30]Entry name (up to 30 chars).
real_entry: u32Real entry (for hard links).
next_link: u32Next link in chain.
next_same_hash: u32Next entry with same hash.
parent: u32Parent directory block.
extension: u32Extension block (file ext or dir cache).
sec_type: i32Secondary type.
Implementations§
Source§impl EntryBlock
impl EntryBlock
Sourcepub fn entry_type(&self) -> Option<EntryType>
pub fn entry_type(&self) -> Option<EntryType>
Get entry type.
Sourcepub const fn data_block(&self, index: usize) -> u32
pub const fn data_block(&self, index: usize) -> u32
Get data block pointer at index (for files). Index 0 is the first data block.
Trait Implementations§
Source§impl Clone for EntryBlock
impl Clone for EntryBlock
Source§fn clone(&self) -> EntryBlock
fn clone(&self) -> EntryBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EntryBlock
impl RefUnwindSafe for EntryBlock
impl Send for EntryBlock
impl Sync for EntryBlock
impl Unpin for EntryBlock
impl UnwindSafe for EntryBlock
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