StringTableBuilder.addString

size_t addString(string str)

Add a string to the string table.

If the string already exists in the table, returns the existing offset. Otherwise, adds the string with a null terminator and returns the new offset.

Parameters

strThe string to add.

Returns

The offset of the string in the string table.