Struct mft::attribute::header::NonResidentHeader
source · pub struct NonResidentHeader {
pub vnc_first: u64,
pub vnc_last: u64,
pub datarun_offset: u16,
pub unit_compression_size: u16,
pub padding: u32,
pub allocated_length: u64,
pub file_size: u64,
pub valid_data_length: u64,
pub total_allocated: Option<u64>,
}
Fields§
§vnc_first: u64
The lowest virtual cluster number (VCN) covered by this attribute record.
vnc_last: u64
The highest VCN covered by this attribute record.
datarun_offset: u16
The offset to the mapping pairs array from the start of the attribute record, in bytes. For more information, see Remarks.
unit_compression_size: u16
Reserved UCHAR[6]
padding: u32
§allocated_length: u64
The allocated size of the file, in bytes. This value is an even multiple of the cluster size. This member is not valid if the LowestVcn member is nonzero.
file_size: u64
§valid_data_length: u64
Contains the valid data size in number of bytes. This value is not valid if the first VCN is nonzero.
total_allocated: Option<u64>
Implementations§
source§impl NonResidentHeader
impl NonResidentHeader
pub fn from_stream<R: Read>(reader: &mut R) -> Result<NonResidentHeader>
Trait Implementations§
source§impl Clone for NonResidentHeader
impl Clone for NonResidentHeader
source§fn clone(&self) -> NonResidentHeader
fn clone(&self) -> NonResidentHeader
Returns a copy 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 more