Struct ntfs::structured_values::NtfsIndexAllocation
source · pub struct NtfsIndexAllocation<'n, 'f> { /* private fields */ }
Expand description
Structure of an $INDEX_ALLOCATION attribute.
This attribute describes the sub-nodes of a B-tree.
The top-level nodes are managed via NtfsIndexRoot
.
NTFS uses B-trees for describing directories (as indexes of NtfsFileName
s), looking up Object IDs,
Reparse Points, and Security Descriptors, to just name a few.
An $INDEX_ALLOCATION attribute can be resident or non-resident.
Reference: https://flatcap.github.io/linux-ntfs/ntfs/attributes/index_allocation.html
Implementations§
source§impl<'n, 'f> NtfsIndexAllocation<'n, 'f>
impl<'n, 'f> NtfsIndexAllocation<'n, 'f>
sourcepub fn record_from_vcn<T>(
&self,
fs: &mut T,
index_record_size: u32,
vcn: Vcn
) -> Result<NtfsIndexRecord>where
T: Read + Seek,
pub fn record_from_vcn<T>( &self, fs: &mut T, index_record_size: u32, vcn: Vcn ) -> Result<NtfsIndexRecord>where T: Read + Seek,
Returns the NtfsIndexRecord
located at the given Virtual Cluster Number (VCN).
The record is fully read, fixed up, and validated.
This function is usually called on the return value of NtfsIndexEntry::subnode_vcn
to move further
down in the B-tree.
sourcepub fn records(&self, index_record_size: u32) -> NtfsIndexRecords<'n, 'f>
pub fn records(&self, index_record_size: u32) -> NtfsIndexRecords<'n, 'f>
Returns an iterator over all Index Records of this $INDEX_ALLOCATION attribute (cf. NtfsIndexRecord
).
Each Index Record is fully read, fixed up, and validated.
Trait Implementations§
source§impl<'n, 'f> Clone for NtfsIndexAllocation<'n, 'f>
impl<'n, 'f> Clone for NtfsIndexAllocation<'n, 'f>
source§fn clone(&self) -> NtfsIndexAllocation<'n, 'f>
fn clone(&self) -> NtfsIndexAllocation<'n, 'f>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'n, 'f> Debug for NtfsIndexAllocation<'n, 'f>
impl<'n, 'f> Debug for NtfsIndexAllocation<'n, 'f>
source§impl<'n, 'f> NtfsStructuredValue<'n, 'f> for NtfsIndexAllocation<'n, 'f>
impl<'n, 'f> NtfsStructuredValue<'n, 'f> for NtfsIndexAllocation<'n, 'f>
const TY: NtfsAttributeType = NtfsAttributeType::IndexAllocation
source§fn from_attribute_value<T>(
_fs: &mut T,
value: NtfsAttributeValue<'n, 'f>
) -> Result<Self>where
T: Read + Seek,
fn from_attribute_value<T>( _fs: &mut T, value: NtfsAttributeValue<'n, 'f> ) -> Result<Self>where T: Read + Seek,
NtfsAttributeValue
.