LLVM 20.0.0git
Functions
Collaboration diagram for Memory Buffers:

Functions

LLVMBool LLVMCreateMemoryBufferWithContentsOfFile (const char *Path, LLVMMemoryBufferRef *OutMemBuf, char **OutMessage)
 
LLVMBool LLVMCreateMemoryBufferWithSTDIN (LLVMMemoryBufferRef *OutMemBuf, char **OutMessage)
 
LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRange (const char *InputData, size_t InputDataLength, const char *BufferName, LLVMBool RequiresNullTerminator)
 
LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRangeCopy (const char *InputData, size_t InputDataLength, const char *BufferName)
 
const charLLVMGetBufferStart (LLVMMemoryBufferRef MemBuf)
 
size_t LLVMGetBufferSize (LLVMMemoryBufferRef MemBuf)
 
void LLVMDisposeMemoryBuffer (LLVMMemoryBufferRef MemBuf)
 

Detailed Description

Function Documentation

◆ LLVMCreateMemoryBufferWithContentsOfFile()

LLVMBool LLVMCreateMemoryBufferWithContentsOfFile ( const char Path,
LLVMMemoryBufferRef OutMemBuf,
char **  OutMessage 
)

◆ LLVMCreateMemoryBufferWithMemoryRange()

LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRange ( const char InputData,
size_t  InputDataLength,
const char BufferName,
LLVMBool  RequiresNullTerminator 
)

Definition at line 4424 of file Core.cpp.

References llvm::MemoryBuffer::getMemBuffer(), llvm::release, and llvm::wrap().

◆ LLVMCreateMemoryBufferWithMemoryRangeCopy()

LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRangeCopy ( const char InputData,
size_t  InputDataLength,
const char BufferName 
)

◆ LLVMCreateMemoryBufferWithSTDIN()

LLVMBool LLVMCreateMemoryBufferWithSTDIN ( LLVMMemoryBufferRef OutMemBuf,
char **  OutMessage 
)

◆ LLVMDisposeMemoryBuffer()

void LLVMDisposeMemoryBuffer ( LLVMMemoryBufferRef  MemBuf)

Definition at line 4453 of file Core.cpp.

References unwrap().

◆ LLVMGetBufferSize()

size_t LLVMGetBufferSize ( LLVMMemoryBufferRef  MemBuf)

Definition at line 4449 of file Core.cpp.

References unwrap().

◆ LLVMGetBufferStart()

const char * LLVMGetBufferStart ( LLVMMemoryBufferRef  MemBuf)

Definition at line 4445 of file Core.cpp.

References unwrap().