45#define BLACKBOX_SIZE 65535
70#define bboxGetVal(ent) ((char*)ent + offsetof(BlackBoxEnt, name) + ent->namelen)
78#define bboxEntSize(ent) (offsetof(BlackBoxEnt, name) + ent->namelen + ent->vallen)
102void bboxSet(_In_ strref name, _In_ strref val, uint8 flags);
char dbgBlackBox[]
Global black box buffer visible to debuggers and crash dump analyzers.
void bboxSet(strref name, strref val, uint8 flags)
BLACKBOX_FLAGS
Flags for black box entries.
void bboxDelete(strref name)
@ BBox_Private
Entry contains potentially private data; allow user opt-out in crash reports.
Copy-on-write strings with automatic memory management and rope optimization.
uint16 next
Offset to next entry (0 if last)
char name[1]
Variable-length name string (null-terminated)
uint8 flags
Flags from BLACKBOX_FLAGS enum.
uint16 vallen
Length of value including null terminator.
uint8 namelen
Length of name including null terminator.
uint16 prev
Offset to previous entry (0 if first)