LLVM  6.0.0svn
Public Member Functions | Friends | List of all members
llvm::sys::MemoryBlock Class Reference

This class encapsulates the notion of a memory block which has an address and a size. More...

#include "llvm/Support/Memory.h"

Public Member Functions

 MemoryBlock ()
 
 MemoryBlock (void *addr, size_t size)
 
void * base () const
 
size_t size () const
 

Friends

class Memory
 

Detailed 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.

See also
Memory Memory block abstraction.

Definition at line 29 of file Memory.h.

Constructor & Destructor Documentation

◆ MemoryBlock() [1/2]

llvm::sys::MemoryBlock::MemoryBlock ( )
inline

◆ MemoryBlock() [2/2]

llvm::sys::MemoryBlock::MemoryBlock ( void *  addr,
size_t  size 
)
inline

Definition at line 32 of file Memory.h.

Member Function Documentation

◆ base()

void* llvm::sys::MemoryBlock::base ( ) const
inline

◆ size()

size_t llvm::sys::MemoryBlock::size ( ) const
inline

Friends And Related Function Documentation

◆ Memory

friend class Memory
friend

Definition at line 39 of file Memory.h.


The documentation for this class was generated from the following file: