Bazaar developer reference

CvDllGameContext::Allocate(size_t)

Defined in
CvDllContext.cpp, line 188
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_Allocate

Hooks

static bool BeforeCvDllGameContext_Allocate(size_t bytes, void*& result);static void AfterCvDllGameContext_Allocate(size_t bytes, void*& result);static void* ReplaceCvDllGameContext_Allocate(void* (*original)(size_t), size_t bytes);CivRegisterBefore<CivHooks::CvDllGameContext_Allocate>(host, &BeforeCvDllGameContext_Allocate);CivRegisterAfter<CivHooks::CvDllGameContext_Allocate>(host, &AfterCvDllGameContext_Allocate);CivRegisterReplace<CivHooks::CvDllGameContext_Allocate>(host, &ReplaceCvDllGameContext_Allocate);

Code

188void* CvDllGameContext::Allocate(size_t bytes)189{190	return HeapAlloc(s_hHeap, 0, bytes);191}

Calls

Called by

52 functions in 50 files