CyberEngineMkIII
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CYBVirtualMemory.cpp
Go to the documentation of this file.
1 #include "CYB.hpp"
3 
4 CYB::Platform::System::VirtualMemory::VirtualMemory(const unsigned long long ANumBytes) :
5  FReservation(InitReservation(ANumBytes)),
6  FCommitSize(0),
7  FReservationSize(ANumBytes)
8 {
10 }
11 
13  return FReservation;
14 }
15 
16 unsigned long long CYB::Platform::System::VirtualMemory::CommitSize(void) const noexcept {
17  return FCommitSize;
18 }
19 
20 unsigned long long CYB::Platform::System::VirtualMemory::ReservationSize(void) const noexcept {
21  return FReservationSize;
22 }
unsigned long long ReservationSize(void) const noexcept
Get the reservation size. Attempting to commit a size larger than this will generate a throw...
const unsigned long long FReservationSize
The size of the reservation.
void * operator()(void) const noexcept
Get the underlying reservation.
unsigned long long CommitSize(void) const noexcept
Get the current commit size of the reservation.
VirtualMemory(const unsigned long long ANumBytes)
Reserve some amount of address space for future allocation.
Precompiled header for inter-engine operations.
static void LessThanOrEqual(const AType &ALHS, const AType &ARHS) noexcept
Less than or equal assertion function. May not be evaluated.