12#ifndef ARCCORE_COMMON_ALLOCATEDMEMORYINFO_H
13#define ARCCORE_COMMON_ALLOCATEDMEMORYINFO_H
17#include "arccore/common/CommonGlobal.h"
31class AllocatedMemoryInfo
35 AllocatedMemoryInfo() =
default;
36 explicit AllocatedMemoryInfo(
void* base_address)
37 : m_base_address(base_address)
39 AllocatedMemoryInfo(
void* base_address,
Int64 size)
40 : m_base_address(base_address)
45 : m_base_address(base_address)
59 void* m_base_address =
nullptr;
61 Int64 m_capacity = -1;
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.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.