Function gpa::system::GetAllocationGranularity

Function Documentation

size_t gpa::system::GetAllocationGranularity()

Query the current system allocation granularity. This is only relevant for the Win32 API VirtualAlloc call. On non-Windows systems this function will return the current page size (see GetPageSize()).

Note

This function only has meaning on Windows

Returns

System allocation granularity, as returned in the dwAllocationGRanularity member of the SYSTEM_INFO struct after a call to GetSystemInfo() (Win32 API).