Skip to main content

Module string_table

Module string_table 

Source
Expand description

FAFb v2 String Table

A dedicated string table section (classic ELF/IFF pattern). Section entries reference names by u8 index into the table. Supports up to 256 unique names (matches MAX_SECTIONS).

§Wire format

[u16 count] [u16 len₀][utf8₀] [u16 len₁][utf8₁] ...

Max 256 entries, max 255 bytes per name.

Structs§

StringTable
A string table mapping u8 indices to UTF-8 names

Constants§

MAX_STRING_LENGTH
Maximum byte length of a single string table entry
MAX_STRING_TABLE_ENTRIES
Maximum number of entries in the string table