class StringTable
Defined at line 57 of file ../../zircon/system/ulib/smbios/include/lib/smbios/smbios.h
Utility for working with the table of null-terminated strings after each
struct.
Public Methods
void StringTable ()
Defined at line 30 of file ../../zircon/system/ulib/smbios/smbios.cc
void ~StringTable ()
Defined at line 31 of file ../../zircon/system/ulib/smbios/smbios.cc
zx_status_t Init (const Header * h, size_t max_struct_len)
Construct a StringTable from a header and a max possible length. The
length includes the formatted portion (h->length).
Defined at line 33 of file ../../zircon/system/ulib/smbios/smbios.cc
size_t length ()
Return the length of the StringTable, in bytes, including terminating NUL.
Defined at line 67 of file ../../zircon/system/ulib/smbios/include/lib/smbios/smbios.h
const char * GetString (size_t idx)
Convenience version that does not identify the error
Defined at line 73 of file ../../zircon/system/ulib/smbios/include/lib/smbios/smbios.h
zx_status_t GetString (size_t idx, const char ** out)
This operation is slow, and indexed from 1. |*out| is always assigned a
null-terminated string, even on error.
Defined at line 82 of file ../../zircon/system/ulib/smbios/smbios.cc
void Dump ()
Defined at line 116 of file ../../zircon/system/ulib/smbios/smbios.cc