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 67 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 

Definition at line 247 of file Memory.cpp.

References lldb_private::RangeVector< B, S >::Append(), m_free_blocks, and m_range.

◆ ~AllocatedBlock()

AllocatedBlock::~AllocatedBlock ( )

Definition at line 257 of file Memory.cpp.

Member Function Documentation

◆ CalculateChunksNeededForSize()

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

Definition at line 93 of file Memory.h.

Referenced by ReserveBlock().

◆ Contains()

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

Definition at line 86 of file Memory.h.

◆ FreeBlock()

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

◆ GetBaseAddress()

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

Definition at line 78 of file Memory.h.

◆ GetByteSize()

uint32_t lldb_private::AllocatedBlock::GetByteSize ( ) const

Definition at line 80 of file Memory.h.

◆ GetChunkSize()

uint32_t lldb_private::AllocatedBlock::GetChunkSize ( ) const

Definition at line 84 of file Memory.h.

◆ GetPermissions()

uint32_t lldb_private::AllocatedBlock::GetPermissions ( ) const

Definition at line 82 of file Memory.h.

◆ ReserveBlock()

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

◆ TotalChunks()

uint32_t lldb_private::AllocatedBlock::TotalChunks ( ) const

Definition at line 91 of file Memory.h.

Member Data Documentation

◆ m_chunk_size

const uint32_t lldb_private::AllocatedBlock::m_chunk_size

Definition at line 101 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 103 of file Memory.h.

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

◆ m_permissions

const uint32_t lldb_private::AllocatedBlock::m_permissions

Definition at line 99 of file Memory.h.

◆ m_range

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

Definition at line 97 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 105 of file Memory.h.

Referenced by FreeBlock(), and ReserveBlock().

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