pub struct NtfsResidentAttributeValue<'f> { /* private fields */ }
Expand description
Reader for a value of a resident NTFS Attribute (which is entirely contained in the NTFS File Record).
Implementations§
Source§impl<'f> NtfsResidentAttributeValue<'f>
impl<'f> NtfsResidentAttributeValue<'f>
Sourcepub fn data(&self) -> &'f [u8] ⓘ
pub fn data(&self) -> &'f [u8] ⓘ
Returns a slice of the entire value data.
Remember that a resident attribute fits entirely inside the NTFS File Record of the requested file. Hence, the fixed up File Record is entirely in memory at this stage and a slice to a resident attribute value can be obtained easily.
Sourcepub fn data_position(&self) -> NtfsPosition
pub fn data_position(&self) -> NtfsPosition
Returns the absolute current data seek position within the filesystem, in bytes.
This may be None
if the current seek position is outside the valid range.
Trait Implementations§
Source§impl<'f> Clone for NtfsResidentAttributeValue<'f>
impl<'f> Clone for NtfsResidentAttributeValue<'f>
Source§fn clone(&self) -> NtfsResidentAttributeValue<'f>
fn clone(&self) -> NtfsResidentAttributeValue<'f>
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<'f> Debug for NtfsResidentAttributeValue<'f>
impl<'f> Debug for NtfsResidentAttributeValue<'f>
Source§impl<'f> NtfsReadSeek for NtfsResidentAttributeValue<'f>
impl<'f> NtfsReadSeek for NtfsResidentAttributeValue<'f>
Source§fn stream_position(&self) -> u64
fn stream_position(&self) -> u64
Auto Trait Implementations§
impl<'f> Freeze for NtfsResidentAttributeValue<'f>
impl<'f> RefUnwindSafe for NtfsResidentAttributeValue<'f>
impl<'f> Send for NtfsResidentAttributeValue<'f>
impl<'f> Sync for NtfsResidentAttributeValue<'f>
impl<'f> Unpin for NtfsResidentAttributeValue<'f>
impl<'f> UnwindSafe for NtfsResidentAttributeValue<'f>
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