Newer
Older
Import / research / string-tables / README.md
@John Ryland John Ryland on 22 Dec 2020 543 bytes add new projects

StringsTableTest

A fixed-string is a compile time string which is stored in the read only section of the executable and is available as an int. The mapping is fixed at compile time. The retrieval of the static string that the id maps to is thread safe.

This test shows how this can be integrated with cmake to be able to at compile time find all the strings and place them in the strings table.

This could be useful for a fixed size union that contains various types as well as string ids which refer to fixed strings.