Skip to main content

read_section_alias_table

Function read_section_alias_table 

Source
pub fn read_section_alias_table(
    buf: &[u8],
    index: &InkbIndex,
) -> Result<Vec<AliasEntry>, DecodeError>
Expand description

Read the M-3 AliasTable section (docs/modules-spec.md §5) from a complete .inkb file using its index. Absent section (a pre-M-3 file, or a story with no #@was directives) decodes as empty, mirroring read_section_literal_pool. The section-local version byte is checked independently of the whole-file VERSION — see [ALIAS_TABLE_SECTION_VERSION].