Currently, section names are encoded as:
| Field |
Type |
Description |
| size |
varuint32 |
size of this section in bytes, excluding this size |
| id_len |
varuint32 |
section identifier string length |
| id_str |
bytes |
section identifier string of id_len bytes |
We could restrict id_str to 7-bit ASCII and then just use a LEB128-like encoding for the entire string. Might be too much of a cute trick, but would save us a byte in each section header. One could image that the section structure could be nested and used to encode a variety of data in the binary file, so a tiny header might be useful.