MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / GetHandleApproxSize

Method GetHandleApproxSize

core/MenuManager.cpp:114–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114bool MenuManager::GetHandleApproxSize(HandleType_t type, void *object, unsigned int *pSize)
115{
116 if (type == m_MenuType)
117 {
118 *pSize = ((IBaseMenu *)object)->GetApproxMemUsage();
119 return true;
120 }
121 else
122 {
123 *pSize = ((IMenuStyle *)object)->GetApproxMemUsage();
124 return true;
125 }
126
127 return false;
128}
129
130Handle_t MenuManager::CreateMenuHandle(IBaseMenu *menu, IdentityToken_t *pOwner)
131{

Callers

nothing calls this directly

Calls 1

GetApproxMemUsageMethod · 0.45

Tested by

no test coverage detected