Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::AllocatedMemoryInfo Class Reference

Information about an allocated memory region. More...

#include <arccore/common/AllocatedMemoryInfo.h>

Public Member Functions

 AllocatedMemoryInfo (void *base_address)
 AllocatedMemoryInfo (void *base_address, Int64 size)
 AllocatedMemoryInfo (void *base_address, Int64 size, Int64 capacity)
void * baseAddress () const
 Address of the start of the allocated region.
Int64 size () const
 Size in bytes of the used memory region. (-1) if unknown.
Int64 capacity () const
 Size in bytes of the allocated memory region. (-1) if unknown.

Public Attributes

void * m_base_address = nullptr
Int64 m_size = -1
Int64 m_capacity = -1

Detailed Description

Information about an allocated memory region.

Definition at line 31 of file AllocatedMemoryInfo.h.

Constructor & Destructor Documentation

◆ AllocatedMemoryInfo() [1/3]

Arcane::AllocatedMemoryInfo::AllocatedMemoryInfo ( void * base_address)
inlineexplicit

Definition at line 36 of file AllocatedMemoryInfo.h.

◆ AllocatedMemoryInfo() [2/3]

Arcane::AllocatedMemoryInfo::AllocatedMemoryInfo ( void * base_address,
Int64 size )
inline

Definition at line 39 of file AllocatedMemoryInfo.h.

◆ AllocatedMemoryInfo() [3/3]

Arcane::AllocatedMemoryInfo::AllocatedMemoryInfo ( void * base_address,
Int64 size,
Int64 capacity )
inline

Definition at line 44 of file AllocatedMemoryInfo.h.

Member Function Documentation

◆ baseAddress()

◆ capacity()

Int64 Arcane::AllocatedMemoryInfo::capacity ( ) const
inline

Size in bytes of the allocated memory region. (-1) if unknown.

Definition at line 55 of file AllocatedMemoryInfo.h.

◆ size()

Int64 Arcane::AllocatedMemoryInfo::size ( ) const
inline

Size in bytes of the used memory region. (-1) if unknown.

Definition at line 53 of file AllocatedMemoryInfo.h.

Referenced by Arcane::IMemoryAllocator::copyMemory().

Member Data Documentation

◆ m_base_address

void* Arcane::AllocatedMemoryInfo::m_base_address = nullptr

Definition at line 59 of file AllocatedMemoryInfo.h.

◆ m_capacity

Int64 Arcane::AllocatedMemoryInfo::m_capacity = -1

Definition at line 61 of file AllocatedMemoryInfo.h.

◆ m_size

Int64 Arcane::AllocatedMemoryInfo::m_size = -1

Definition at line 60 of file AllocatedMemoryInfo.h.


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