Skip to main content

ContainerTable

Struct ContainerTable 

Source
#[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>

Source

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).

Source

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).

Source

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.

Source

pub fn cluster_count(&self, band_id: u64) -> Option<u64>

The cluster count (band size) of band_id, or None if absent.

Trait Implementations§

Source§

impl<'a> Debug for ContainerTable<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.