pub struct NtfsFileReference(/* private fields */);Expand description
Absolute reference to a File Record on the filesystem, composed out of a File Record Number and a Sequence Number.
Reference: https://flatcap.github.io/linux-ntfs/ntfs/concepts/file_reference.html
Implementations§
Source§impl NtfsFileReference
impl NtfsFileReference
Sourcepub fn file_record_number(&self) -> u64
pub fn file_record_number(&self) -> u64
Returns the 48-bit File Record Number.
This can be fed into Ntfs::file to create an NtfsFile object for the corresponding File Record
(if you cannot use Self::to_file for some reason).
Sourcepub fn sequence_number(&self) -> u16
pub fn sequence_number(&self) -> u16
Returns the 16-bit sequence number of the File Record.
In a consistent file system, this number matches what NtfsFile::sequence_number returns.
Trait Implementations§
Source§impl BinRead for NtfsFileReference
impl BinRead for NtfsFileReference
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming little-endian byte order, using
the given arguments. Read moreSource§impl Clone for NtfsFileReference
impl Clone for NtfsFileReference
impl Copy for NtfsFileReference
Auto Trait Implementations§
impl Freeze for NtfsFileReference
impl RefUnwindSafe for NtfsFileReference
impl Send for NtfsFileReference
impl Sync for NtfsFileReference
impl Unpin for NtfsFileReference
impl UnsafeUnpin for NtfsFileReference
impl UnwindSafe for NtfsFileReference
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