Skip to main content

parse_sohm_table

Function parse_sohm_table 

Source
pub fn parse_sohm_table(
    file_data: &[u8],
    table_addr: usize,
    nindexes: u8,
    offset_size: u8,
) -> Result<SohmTable, FormatError>
Expand description

Parse the SOHM table structure (signature “SMTB”) from the file.

Each index entry: index_type(1) + mesg_types(2) + min_mesg_size(4) + list_max(2) + btree_min(2) + num_messages(2) + index_addr(offset_size) + heap_addr(offset_size)