Struct ntfs::NtfsFileReference
source · pub struct NtfsFileReference(_);
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>where
R: Read + Seek,
Self::Args<'a>: for<'a> Required,
fn read_be<R>(reader: &mut R) -> Result<Self, Error>where R: Read + Seek, Self::Args<'a>: for<'a> Required,
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>where
R: Read + Seek,
Self::Args<'a>: for<'a> Required,
fn read_le<R>(reader: &mut R) -> Result<Self, Error>where R: Read + Seek, Self::Args<'a>: for<'a> Required,
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>where
R: Read + Seek,
Self::Args<'a>: for<'a> Required,
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>where R: Read + Seek, Self::Args<'a>: for<'a> Required,
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>where
R: Read + Seek,
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>where R: Read + Seek,
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>where
R: Read + Seek,
fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>where R: Read + Seek,
Read
Self
from the reader, assuming little-endian byte order, using
the given arguments. Read moresource§impl Clone for NtfsFileReference
impl Clone for NtfsFileReference
source§fn clone(&self) -> NtfsFileReference
fn clone(&self) -> NtfsFileReference
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 moresource§impl Debug for NtfsFileReference
impl Debug for NtfsFileReference
impl Copy for NtfsFileReference
Auto Trait Implementations§
impl RefUnwindSafe for NtfsFileReference
impl Send for NtfsFileReference
impl Sync for NtfsFileReference
impl Unpin 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