Skip to main content

Superblock

Struct Superblock 

Source
pub struct Superblock {
Show 23 fields pub modification_time: Timedate, pub uncompressed_size: u32, pub number_of_summary_buckets: u32, pub number_of_non_summary_buckets: u32, pub number_of_bitmaps: u32, pub rrv_bucket_size: u32, pub data_rrv_bucket_position: u32, pub rrv_identifier_low: u32, pub rrv_identifier_high: u32, pub bitmap_size: u32, pub data_note_identifier_table_size: u32, pub modified_note_log_size: u32, pub folder_directory_object_size: u32, pub flags: u16, pub write_count: u32, pub size: u32, pub compression_type: u16, pub number_of_summary_bucket_descriptor_pages: u32, pub number_of_non_summary_bucket_descriptor_pages: u32, pub number_of_soft_deleted_note_entries: u32, pub shared_template_information_size: u16, pub number_of_form_names: u16, pub form_bitmap_size: u32,
}
Expand description

Parsed superblock header. Field naming mirrors the libnsfdb struct.

Fields§

§modification_time: Timedate

Most recent modification time. Used to select the freshest of the four superblock copies via select_freshest.

§uncompressed_size: u32

Uncompressed size of the superblock body (when compressed).

§number_of_summary_buckets: u32

Total summary buckets allocated in the database.

§number_of_non_summary_buckets: u32

Total non-summary buckets allocated in the database.

§number_of_bitmaps: u32

Total bitmaps allocated in the database.

§rrv_bucket_size: u32

Size in bytes of each RRV bucket. Should match DBINFO’s rrv_bucket_size; cross-validate at the database layer.

§data_rrv_bucket_position: u32

Data RRV bucket position in 256-byte units. Multiply by 256 for the byte offset. Should match DBINFO’s data_rrv_bucket_position for non-fresh templates.

§rrv_identifier_low: u32

Lower 32 bits of the next-available RRV identifier counter.

§rrv_identifier_high: u32

Upper 32 bits of the next-available RRV identifier counter.

§bitmap_size: u32

Allocation-bitmap size in bytes.

§data_note_identifier_table_size: u32

Data Note Identifier Table size in bytes.

§modified_note_log_size: u32

Modified-note-log size in bytes.

§folder_directory_object_size: u32

Folder Directory Object (FDO) size in bytes.

§flags: u16

Flags word.

§write_count: u32

Write-count counter. Increments on each superblock commit.

§size: u32

Total size in bytes of this superblock (header + body + footer).

§compression_type: u16

Compression type of the superblock body. Typically zero (uncompressed) on modern Domino.

§number_of_summary_bucket_descriptor_pages: u32

Number of summary-bucket-descriptor pages reachable via this superblock. Used by Slice 2.6 Phase B for BDT walking.

§number_of_non_summary_bucket_descriptor_pages: u32

Number of non-summary-bucket-descriptor pages reachable via this superblock.

§number_of_soft_deleted_note_entries: u32

Number of soft-deleted note entries (notes moved to $Trash with retention period still active).

§shared_template_information_size: u16

Shared-template-information block size in bytes.

§number_of_form_names: u16

Number of form names cached at the superblock level.

§form_bitmap_size: u32

Form-bitmap size in bytes.

Implementations§

Source§

impl Superblock

Source

pub fn parse(bytes: &[u8]) -> Result<Self, NsfError>

Parse a superblock header from the first SUPERBLOCK_HEADER_BYTES of a buffer positioned at the superblock’s file offset.

Source

pub fn modification_sort_key(&self) -> (u32, u32)

Comparable absolute UTC timestamp from this superblock’s modification_time. Returned as (julian_day, centiseconds) which compares lexicographically and treats different timezones uniformly (Innards[0] is always centiseconds since midnight UTC per the format spec).

Trait Implementations§

Source§

impl Clone for Superblock

Source§

fn clone(&self) -> Superblock

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Superblock

Source§

impl Debug for Superblock

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for Superblock

Source§

impl PartialEq for Superblock

Source§

fn eq(&self, other: &Superblock) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Superblock

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.