[−][src]Struct mft::mft::MftParser
Methods
impl MftParser<BufReader<File>>
[src]
pub fn from_path(filename: impl AsRef<Path>) -> Result<Self>
[src]
Instantiates an instance of the parser from a file path. Does not mutate the file contents in any way.
impl MftParser<Cursor<Vec<u8>>>
[src]
pub fn from_buffer(buffer: Vec<u8>) -> Result<Self>
[src]
Instantiates an instance of the parser from a buffer containing a full MFT file. Useful for testing.
impl<T: ReadSeek> MftParser<T>
[src]
pub fn from_read_seek(data: T, size: Option<u64>) -> Result<Self>
[src]
pub fn get_entry_count(&self) -> u64
[src]
pub fn get_entry(&mut self, entry_number: u64) -> Result<MftEntry>
[src]
Reads an entry from the MFT by entry number.
pub fn iter_entries(&mut self) -> impl Iterator<Item = Result<MftEntry>> + '_
[src]
Iterates over all the entries in the MFT.
pub fn get_full_path_for_entry(
&mut self,
entry: &MftEntry
) -> Result<Option<PathBuf>>
[src]
&mut self,
entry: &MftEntry
) -> Result<Option<PathBuf>>
Gets the full path for an entry. Caches computations.
Auto Trait Implementations
Blanket Implementations
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,