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:31

Member Variables

private void* Address
Address of first byte of memory area
private size_t AllocatedSize
Size, in bytes of the memory area
private unsigned int Flags = 0

Method Overview

Methods

MemoryBlock()

Declared at: llvm/include/llvm/Support/Memory.h:33

MemoryBlock(void* addr, size_t allocatedSize)

Declared at: llvm/include/llvm/Support/Memory.h:34

Parameters

void* addr
size_t allocatedSize

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:39

void* base() const

Declared at: llvm/include/llvm/Support/Memory.h:36