BSDL Device Tree Compiler
|
Public Member Functions | |
string_table () | |
uint32_t | add_string (string str) |
void | write (dtb::output_writer &writer) |
Class encapsulating the string table. FDT strings are stored in a string section. This maintains a map from strings to their offsets in the strings section.
Note: We don't currently do suffix matching, which may save a small amount of space.
|
inline |
Default constructor, creates an empty strings table.
|
inline |
Adds a string to the table, returning the offset from the start where it will be written. If the string is already present, this will return its existing offset, otherwise it will return a new offset.
|
inline |
Writes the strings table to the specified output.