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

#include <Memory.h>

Collaboration diagram for lldb_private::AllocatedBlock:
Collaboration graph

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_tm_range
const uint32_t m_permissions
const uint32_t m_chunk_size
RangeVector< lldb::addr_t, uint32_tm_free_blocks
RangeVector< lldb::addr_t, uint32_tm_reserved_blocks

Detailed Description

Definition at line 68 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 ( )

Definition at line 262 of file Memory.cpp.

Member Function Documentation

◆ CalculateChunksNeededForSize()

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

Definition at line 94 of file Memory.h.

Referenced by ReserveBlock().

◆ Contains()

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

Definition at line 87 of file Memory.h.

◆ FreeBlock()

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

◆ GetBaseAddress()

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

Definition at line 79 of file Memory.h.

◆ GetByteSize()

uint32_t lldb_private::AllocatedBlock::GetByteSize ( ) const

Definition at line 81 of file Memory.h.

◆ GetChunkSize()

uint32_t lldb_private::AllocatedBlock::GetChunkSize ( ) const

Definition at line 85 of file Memory.h.

◆ GetPermissions()

uint32_t lldb_private::AllocatedBlock::GetPermissions ( ) const

Definition at line 83 of file Memory.h.

◆ ReserveBlock()

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

◆ TotalChunks()

uint32_t lldb_private::AllocatedBlock::TotalChunks ( ) const

Definition at line 92 of file Memory.h.

Member Data Documentation

◆ m_chunk_size

const uint32_t lldb_private::AllocatedBlock::m_chunk_size

Definition at line 102 of file Memory.h.

Referenced by ReserveBlock().

◆ m_free_blocks

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

Definition at line 104 of file Memory.h.

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

◆ m_permissions

const uint32_t lldb_private::AllocatedBlock::m_permissions

Definition at line 100 of file Memory.h.

◆ m_range

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

Definition at line 98 of file Memory.h.

Referenced by AllocatedBlock().

◆ m_reserved_blocks

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

Definition at line 106 of file Memory.h.

Referenced by FreeBlock(), and ReserveBlock().

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