Information about an allocated memory region. More...
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 |
Information about an allocated memory region.
Definition at line 31 of file AllocatedMemoryInfo.h.
|
inlineexplicit |
Definition at line 36 of file AllocatedMemoryInfo.h.
|
inline |
Definition at line 39 of file AllocatedMemoryInfo.h.
|
inline |
Definition at line 44 of file AllocatedMemoryInfo.h.
|
inline |
Address of the start of the allocated region.
Definition at line 51 of file AllocatedMemoryInfo.h.
Referenced by Arcane::PrintableMemoryAllocator::allocate(), Arcane::IMemoryAllocator::copyMemory(), Arcane::Accelerator::Sycl::SyclMemoryAllocatorBase::deallocate(), Arcane::AlignedMemoryAllocator::deallocate(), Arcane::DefaultMemoryAllocator::deallocate(), Arcane::MachineShMemWinMemoryAllocator::deallocate(), Arcane::PrintableMemoryAllocator::deallocate(), Arcane::Accelerator::AcceleratorMemoryAllocatorBase::reallocate(), Arcane::Accelerator::Sycl::SyclMemoryAllocatorBase::reallocate(), Arcane::AlignedMemoryAllocator::reallocate(), Arcane::DefaultMemoryAllocator::reallocate(), Arcane::Impl::StackMemoryAllocator::reallocate(), Arcane::MachineShMemWinMemoryAllocator::reallocate(), Arcane::PrintableMemoryAllocator::reallocate(), and Arcane::MachineShMemWinVariableBase::segmentView().
|
inline |
Size in bytes of the allocated memory region. (-1) if unknown.
Definition at line 55 of file AllocatedMemoryInfo.h.
Referenced by Arcane::Accelerator::AcceleratorMemoryAllocatorBase::reallocate().
|
inline |
Size in bytes of the used memory region. (-1) if unknown.
Definition at line 53 of file AllocatedMemoryInfo.h.
Referenced by Arcane::MachineShMemWinMemoryAllocator::deallocate(), Arcane::Accelerator::AcceleratorMemoryAllocatorBase::reallocate(), and Arcane::Accelerator::Sycl::SyclMemoryAllocatorBase::reallocate().
| void* Arcane::AllocatedMemoryInfo::m_base_address = nullptr |
Definition at line 59 of file AllocatedMemoryInfo.h.
| Int64 Arcane::AllocatedMemoryInfo::m_capacity = -1 |
Definition at line 61 of file AllocatedMemoryInfo.h.
| Int64 Arcane::AllocatedMemoryInfo::m_size = -1 |
Definition at line 60 of file AllocatedMemoryInfo.h.