pub struct RecordPage {
pub offset: usize,
pub last_lsn: u64,
pub data: Vec<u8>,
}Expand description
One RCRD record page from $LogFile with its multi-sector USA fixup applied.
data holds the page exactly as it was in memory before NTFS wrote the
update sequence number (USN) into each 512-byte sector tail — i.e. the
displaced original bytes have been restored from the update-sequence array,
so the log-record stream within the page can be read directly. Pages whose
USA integrity check fails are not represented here (see read_record_pages).
Fields§
§offset: usizeByte offset of this page within the $LogFile stream.
last_lsn: u64last_lsn from the RCRD header (offset 0x08): the LSN of the last log
record that ends on this page.
data: Vec<u8>Page bytes with the USA fixup applied (sector tails restored).
Trait Implementations§
Source§impl Clone for RecordPage
impl Clone for RecordPage
Source§fn clone(&self) -> RecordPage
fn clone(&self) -> RecordPage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecordPage
impl RefUnwindSafe for RecordPage
impl Send for RecordPage
impl Sync for RecordPage
impl Unpin for RecordPage
impl UnsafeUnpin for RecordPage
impl UnwindSafe for RecordPage
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