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 4479 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 4508 of file Core.cpp.

References unwrap().

◆ LLVMGetBufferSize()

size_t LLVMGetBufferSize ( LLVMMemoryBufferRef  MemBuf)

Definition at line 4504 of file Core.cpp.

References unwrap().

◆ LLVMGetBufferStart()

const char * LLVMGetBufferStart ( LLVMMemoryBufferRef  MemBuf)

Definition at line 4500 of file Core.cpp.

References unwrap().