llvm::codeview::getBytesAsCString

Reinterpret a byte array as a null-terminated C string.

Synopsis

Declared in <llvm/DebugInfo/CodeView/RecordSerialization.h>

StringRef
getBytesAsCString(ArrayRef<uint8_t> LeafData);

Return Value

The bytes up to the first null terminator as a StringRef.

Parameters

NameDescription
LeafDataBytes containing a C string payload.