pub struct LocalHeap {
pub data_segment_size: u64,
pub free_list_head_offset: u64,
pub data_segment_address: u64,
}Expand description
Parsed HDF5 Local Heap header.
Fields§
§data_segment_size: u64Size of the data segment in bytes.
free_list_head_offset: u64Offset of the free list head within the data segment.
data_segment_address: u64File address of the data segment.
Implementations§
Source§impl LocalHeap
impl LocalHeap
Sourcepub fn parse(
file_data: &[u8],
offset: usize,
offset_size: u8,
length_size: u8,
) -> Result<LocalHeap, FormatError>
pub fn parse( file_data: &[u8], offset: usize, offset_size: u8, length_size: u8, ) -> Result<LocalHeap, FormatError>
Parse a local heap header at the given offset in the file data.
Sourcepub fn read_string(
&self,
file_data: &[u8],
string_offset: u64,
) -> Result<String, FormatError>
pub fn read_string( &self, file_data: &[u8], string_offset: u64, ) -> Result<String, FormatError>
Read a null-terminated string from the heap’s data segment at the given byte offset.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocalHeap
impl RefUnwindSafe for LocalHeap
impl Send for LocalHeap
impl Sync for LocalHeap
impl Unpin for LocalHeap
impl UnsafeUnpin for LocalHeap
impl UnwindSafe for LocalHeap
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