Struct ntfs::attribute_value::NtfsResidentAttributeValue
source · 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 read<T>(&mut self, _fs: &mut T, buf: &mut [u8]) -> Result<usize>where
T: Read + Seek,
fn read<T>(&mut self, _fs: &mut T, buf: &mut [u8]) -> Result<usize>where T: Read + Seek,
See
std::io::Read::read
.source§fn seek<T>(&mut self, _fs: &mut T, pos: SeekFrom) -> Result<u64>where
T: Read + Seek,
fn seek<T>(&mut self, _fs: &mut T, pos: SeekFrom) -> Result<u64>where T: Read + Seek,
See
std::io::Seek::seek
.source§fn stream_position(&self) -> u64
fn stream_position(&self) -> u64
Auto Trait Implementations§
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