class MemoryBlock
Declaration
class MemoryBlock { /* full declaration omitted */ };
Description
This class encapsulates the notion of a memory block which has an address and a size. It is used by the Memory class (a friend) as the result of various memory allocation operations.
Declared at: llvm/include/llvm/Support/Memory.h:32
Method Overview
- public MemoryBlock()
- public MemoryBlock(void * addr, size_t allocatedSize)
- public size_t allocatedSize() const
- public void * base() const
Methods
¶MemoryBlock()
MemoryBlock()
Declared at: llvm/include/llvm/Support/Memory.h:34
¶MemoryBlock(void* addr, size_t allocatedSize)
MemoryBlock(void* addr, size_t allocatedSize)
Declared at: llvm/include/llvm/Support/Memory.h:35
Parameters
- void* addr
- size_t allocatedSize
¶size_t allocatedSize() const
size_t allocatedSize() const
Description
The size as it was allocated. This is always greater or equal to the size that was originally requested.
Declared at: llvm/include/llvm/Support/Memory.h:40
¶void* base() const
void* base() const
Declared at: llvm/include/llvm/Support/Memory.h:37