MCPcopy Create free account
hub / github.com/baldurk/renderdoc / alloc

Function alloc

renderdoc/api/replay/structured_data.h:1184–1195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1182 }
1183
1184 static void *alloc(size_t sz)
1185 {
1186 void *ret = NULL;
1187#ifdef RENDERDOC_EXPORTS
1188 ret = malloc(sz);
1189 if(ret == NULL)
1190 RENDERDOC_OutOfMemory(sz);
1191#else
1192 ret = RENDERDOC_AllocArrayMem(sz);
1193#endif
1194 return ret;
1195 }
1196 static void dealloc(void *p)
1197 {
1198#ifdef RENDERDOC_EXPORTS

Callers 15

TSmallArrayVectorClass · 0.85
push_backMethod · 0.85
copyNonFrontMethod · 0.85
read_dht_markerMethod · 0.85
read_dqt_markerMethod · 0.85
check_huff_tablesMethod · 0.85
init_frameMethod · 0.85
coeff_buf_openMethod · 0.85
allocMethod · 0.85
metal_types.cppFile · 0.85
operator newMethod · 0.85
SetLazyArrayFunction · 0.85

Calls 1

RENDERDOC_OutOfMemoryFunction · 0.85

Tested by 4

NuklearTickFunction · 0.68
createMenuBarMethod · 0.68
CreateWindowMethod · 0.68
UpdateMethod · 0.68