LLDB mainline
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
lldb_private::AllocatedBlock Class Reference

#include <Memory.h>

Public Member Functions

 AllocatedBlock (lldb::addr_t addr, uint32_t byte_size, uint32_t permissions, uint32_t chunk_size)
 
 ~AllocatedBlock ()
 
lldb::addr_t ReserveBlock (uint32_t size)
 
bool FreeBlock (lldb::addr_t addr)
 
lldb::addr_t GetBaseAddress () const
 
uint32_t GetByteSize () const
 
uint32_t GetPermissions () const
 
uint32_t GetChunkSize () const
 
bool Contains (lldb::addr_t addr) const
 

Protected Member Functions

uint32_t TotalChunks () const
 
uint32_t CalculateChunksNeededForSize (uint32_t size) const
 

Protected Attributes

Range< lldb::addr_t, uint32_t > m_range
 
const uint32_t m_permissions
 
const uint32_t m_chunk_size
 
RangeVector< lldb::addr_t, uint32_t > m_free_blocks
 
RangeVector< lldb::addr_t, uint32_t > m_reserved_blocks
 

Detailed Description

Definition at line 70 of file Memory.h.

Constructor & Destructor Documentation

◆ AllocatedBlock()

AllocatedBlock::AllocatedBlock ( lldb::addr_t  addr,
uint32_t  byte_size,
uint32_t  permissions,
uint32_t  chunk_size 
)

◆ ~AllocatedBlock()

AllocatedBlock::~AllocatedBlock ( )
default

Member Function Documentation

◆ CalculateChunksNeededForSize()

uint32_t lldb_private::AllocatedBlock::CalculateChunksNeededForSize ( uint32_t  size) const
inlineprotected

Definition at line 96 of file Memory.h.

References m_chunk_size.

Referenced by ReserveBlock().

◆ Contains()

bool lldb_private::AllocatedBlock::Contains ( lldb::addr_t  addr) const
inline

Definition at line 89 of file Memory.h.

References lldb_private::Range< B, S >::Contains(), and m_range.

◆ FreeBlock()

bool AllocatedBlock::FreeBlock ( lldb::addr_t  addr)

◆ GetBaseAddress()

lldb::addr_t lldb_private::AllocatedBlock::GetBaseAddress ( ) const
inline

Definition at line 81 of file Memory.h.

References lldb_private::Range< B, S >::GetRangeBase(), and m_range.

◆ GetByteSize()

uint32_t lldb_private::AllocatedBlock::GetByteSize ( ) const
inline

Definition at line 83 of file Memory.h.

References lldb_private::Range< B, S >::GetByteSize(), and m_range.

Referenced by TotalChunks().

◆ GetChunkSize()

uint32_t lldb_private::AllocatedBlock::GetChunkSize ( ) const
inline

Definition at line 87 of file Memory.h.

References m_chunk_size.

Referenced by TotalChunks().

◆ GetPermissions()

uint32_t lldb_private::AllocatedBlock::GetPermissions ( ) const
inline

Definition at line 85 of file Memory.h.

References m_permissions.

◆ ReserveBlock()

lldb::addr_t AllocatedBlock::ReserveBlock ( uint32_t  size)

◆ TotalChunks()

uint32_t lldb_private::AllocatedBlock::TotalChunks ( ) const
inlineprotected

Definition at line 94 of file Memory.h.

References GetByteSize(), and GetChunkSize().

Member Data Documentation

◆ m_chunk_size

const uint32_t lldb_private::AllocatedBlock::m_chunk_size
protected

Definition at line 104 of file Memory.h.

Referenced by CalculateChunksNeededForSize(), GetChunkSize(), and ReserveBlock().

◆ m_free_blocks

RangeVector<lldb::addr_t, uint32_t> lldb_private::AllocatedBlock::m_free_blocks
protected

Definition at line 106 of file Memory.h.

Referenced by AllocatedBlock(), FreeBlock(), and ReserveBlock().

◆ m_permissions

const uint32_t lldb_private::AllocatedBlock::m_permissions
protected

Definition at line 102 of file Memory.h.

Referenced by GetPermissions().

◆ m_range

Range<lldb::addr_t, uint32_t> lldb_private::AllocatedBlock::m_range
protected

Definition at line 100 of file Memory.h.

Referenced by AllocatedBlock(), Contains(), GetBaseAddress(), and GetByteSize().

◆ m_reserved_blocks

RangeVector<lldb::addr_t, uint32_t> lldb_private::AllocatedBlock::m_reserved_blocks
protected

Definition at line 108 of file Memory.h.

Referenced by FreeBlock(), and ReserveBlock().


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