Go to the documentation of this file.
30 #include <memoryapi.h>
32 #define AK_VM_PAGE_SIZE (64*1024)
33 #define AK_VM_HUGE_PAGE_SIZE (2*1024*1024)
39 return VirtualAlloc(
NULL, size, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE);
44 VirtualFree(address, release ? 0 : size, release ? MEM_RELEASE : MEM_DECOMMIT);
Platform-dependent helpers.
AkForceInline void * AllocVM(size_t size, size_t *extra)
AkForceInline void FreeVM(void *address, size_t size, size_t extra, size_t release)
Tell us about your project. We're here to help.
Register your project and we'll help you get started with no strings attached!
Get started with Wwise