getMemBuffer overloads
Synopses
Declared in <llvm/Support/MemoryBuffer.h>
Create a MemoryBuffer referring to the contents of Ref (no copy).
static
std::unique_ptr<MemoryBuffer>
getMemBuffer(
MemoryBufferRef Ref,
bool RequiresNullTerminator = true);
Open the specified memory range as a MemoryBuffer.
static
std::unique_ptr<MemoryBuffer>
getMemBuffer(
StringRef InputData,
StringRef BufferName = "",
bool RequiresNullTerminator = true);
Return Value
-
An owned MemoryBuffer that refers to Ref's data.
-
An owned MemoryBuffer that refers to InputData.
Parameters
Name |
Description |
Ref |
Memory buffer reference whose contents are referred to. |
RequiresNullTerminator |
Whether the buffer must be null‐terminated. |
InputData |
Memory range to wrap (not copied). |
BufferName |
Identifier for the buffer (e.g. for diagnostics). |
Created with MrDocs