pub struct SohmMasterTable {
pub indexes: Vec<SohmIndexHeader>,
}Expand description
The SOHM master table (SMTB): one index header per shared-message index.
Fields§
§indexes: Vec<SohmIndexHeader>Index headers, in table order.
Implementations§
Source§impl SohmMasterTable
impl SohmMasterTable
Sourcepub fn encoded_size(ctx: &FormatContext, nindexes: u8) -> usize
pub fn encoded_size(ctx: &FormatContext, nindexes: u8) -> usize
On-disk size of a table with nindexes index headers
(H5SM_TABLE_SIZE / H5SM_INDEX_HEADER_SIZE).
Sourcepub fn decode(
buf: &[u8],
ctx: &FormatContext,
nindexes: u8,
) -> FormatResult<Self>
pub fn decode( buf: &[u8], ctx: &FormatContext, nindexes: u8, ) -> FormatResult<Self>
Decode the master table. nindexes comes from the shared-message-table
message in the superblock extension — the table itself does not store
it.
Trait Implementations§
Source§impl Clone for SohmMasterTable
impl Clone for SohmMasterTable
Source§impl Debug for SohmMasterTable
impl Debug for SohmMasterTable
Source§impl Default for SohmMasterTable
impl Default for SohmMasterTable
impl Eq for SohmMasterTable
Source§impl PartialEq for SohmMasterTable
impl PartialEq for SohmMasterTable
impl StructuralPartialEq for SohmMasterTable
Auto Trait Implementations§
impl Freeze for SohmMasterTable
impl RefUnwindSafe for SohmMasterTable
impl Send for SohmMasterTable
impl Sync for SohmMasterTable
impl Unpin for SohmMasterTable
impl UnsafeUnpin for SohmMasterTable
impl UnwindSafe for SohmMasterTable
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