edk2/DynamicTablesPkg/Library/Common/SmbiosStringTableLib
Girish Mahadevan cf8227204e DynamicTablesPkg/SmbiosStringTableLib: Add AllocateSmbiosRecord helper
Add AllocateSmbiosRecord() to SmbiosStringTableLib to encapsulate the
SMBIOS spec Section 6.1.3 string-area termination rule. Callers pass
the fixed structure size and an optional string table; the function
appends the correct string area (two-byte double-NULL when no strings
are present, or the full string set size from
StringTableGetStringSetSize() when strings exist).

This removes the need for each generator to open-code the double-NULL
or manually compute the string area size.

Signed-off-by: Girish Mahadevan <gmahadevan@nvidia.com>
Signed-off-by: Varshit Pandya <varshit.pandya@arm.com>
2026-06-05 14:23:55 +00:00
..
SmbiosStringTableLib.c DynamicTablesPkg/SmbiosStringTableLib: Add AllocateSmbiosRecord helper 2026-06-05 14:23:55 +00:00
SmbiosStringTableLib.inf DynamicTablesPkg: Add SMBIOS String table helper library 2023-03-10 14:56:13 +00:00