[−][src]Struct mft::entry::EntryHeader
https://docs.microsoft.com/en-us/windows/desktop/devnotes/file-record-segment-header The MFT entry can be filled entirely with 0-byte values.
Fields
signature: [u8; 4]
MULTI_SECTOR_HEADER The signature. This value is a convenience to the user. This is either "BAAD" or "FILE"
usa_offset: u16
The offset to the update sequence array, from the start of this structure. The update sequence array must end before the last USHORT value in the first sector.
usa_size: u16
metadata_transaction_journal: u64
Metadata transaction journal sequence number (Reserved1 in windows docs) Contains a $LogFile Sequence Number (LSN) (metz)
sequence: u16
The sequence number. This value is incremented each time that a file record segment is freed; it is 0 if the segment is not used. The SequenceNumber field of a file reference must match the contents of this field; if they do not match, the file reference is incorrect and probably obsolete.
hard_link_count: u16
first_attribute_record_offset: u16
The offset of the first attribute record, in bytes.
flags: EntryFlags
used_entry_size: u32
Contains the number of bytes of the MFT entry that are in use
total_entry_size: u32
base_reference: MftReference
A file reference to the base file record segment for this file. If this is the base file record, the value is 0. See MFT_SEGMENT_REFERENCE.
first_attribute_id: u16
record_number: u64
Methods
impl EntryHeader
[src]
pub fn from_reader<R: Read>(
reader: &mut R,
entry_id: u64
) -> Result<EntryHeader>
[src]
reader: &mut R,
entry_id: u64
) -> Result<EntryHeader>
Reads an entry from a stream, will error if the entry is empty (zeroes) Since the entry id is not present in the header, it should be provided by the caller.
Trait Implementations
impl Clone for EntryHeader
[src]
fn clone(&self) -> EntryHeader
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for EntryHeader
[src]
impl Serialize for EntryHeader
[src]
Auto Trait Implementations
impl Send for EntryHeader
impl Sync for EntryHeader
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,