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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NonResidentHeader
impl Debug for NonResidentHeader
Auto Trait Implementations§
impl Freeze for NonResidentHeader
impl RefUnwindSafe for NonResidentHeader
impl Send for NonResidentHeader
impl Sync for NonResidentHeader
impl Unpin for NonResidentHeader
impl UnwindSafe for NonResidentHeader
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