#[non_exhaustive]pub struct ContainerTable<'a> { /* private fields */ }Expand description
The ReFS container tree: a Minstore B+-tree of 160-byte container records
mapping each band to its physical cluster block number (libfsrefs §8).
Implementations§
Source§impl<'a> ContainerTable<'a>
impl<'a> ContainerTable<'a>
Sourcepub fn parse(data: &'a [u8], offset: u64) -> Result<Self, RefsError>
pub fn parse(data: &'a [u8], offset: u64) -> Result<Self, RefsError>
Parse a container-tree page (a Minstore B+-tree node).
§Errors
Any error from MinstorePage::parse (a page too short to hold the
node header).
Sourcepub fn records(&self) -> impl Iterator<Item = ContainerRecord> + '_
pub fn records(&self) -> impl Iterator<Item = ContainerRecord> + '_
Iterate the parsed container records (skipping any row whose value is shorter than the 160-byte container record — never over-reads).
Sourcepub fn physical_base(&self, band_id: u64) -> Option<u64>
pub fn physical_base(&self, band_id: u64) -> Option<u64>
The physical base cluster (LCN) of band_id, or None if the band is
absent from this leaf.
Sourcepub fn cluster_count(&self, band_id: u64) -> Option<u64>
pub fn cluster_count(&self, band_id: u64) -> Option<u64>
The cluster count (band size) of band_id, or None if absent.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ContainerTable<'a>
impl<'a> RefUnwindSafe for ContainerTable<'a>
impl<'a> Send for ContainerTable<'a>
impl<'a> Sync for ContainerTable<'a>
impl<'a> Unpin for ContainerTable<'a>
impl<'a> UnsafeUnpin for ContainerTable<'a>
impl<'a> UnwindSafe for ContainerTable<'a>
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