pub struct Superblock {
pub version: u8,
pub size_of_offsets: u8,
pub size_of_lengths: u8,
pub base_address: u64,
pub root_group_address: u64,
pub end_of_file_address: u64,
pub extension_address: u64,
}Expand description
The HDF5 superblock, parsed from the beginning of the file.
Contains file-level parameters that control interpretation of all other structures: the sizes of offset and length fields, and the address of the root group.
Fields§
§version: u8Superblock version (0, 1, 2, or 3).
size_of_offsets: u8Number of bytes used for addresses (offsets) throughout the file.
size_of_lengths: u8Number of bytes used for sizes (lengths) throughout the file.
base_address: u64File base address (usually 0).
root_group_address: u64Address of the root group’s object header.
end_of_file_address: u64End-of-file address.
extension_address: u64Address of the superblock extension object header (v2/v3 only, may be UNDEF).
Implementations§
Trait Implementations§
Source§impl Clone for Superblock
impl Clone for Superblock
Source§fn clone(&self) -> Superblock
fn clone(&self) -> Superblock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Superblock
impl RefUnwindSafe for Superblock
impl Send for Superblock
impl Sync for Superblock
impl Unpin for Superblock
impl UnsafeUnpin for Superblock
impl UnwindSafe for Superblock
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