MCPcopy Create free account
hub / github.com/crownengine/crown / alloc

Function alloc

3rdparty/bgfx/src/bgfx.cpp:4168–4175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4166 }
4167
4168 const Memory* alloc(uint32_t _size)
4169 {
4170 BX_ASSERT(0 < _size, "Invalid memory operation. _size is 0.");
4171 Memory* mem = (Memory*)bx::alloc(g_allocator, sizeof(Memory) + _size);
4172 mem->size = _size;
4173 mem->data = (uint8_t*)mem + sizeof(Memory);
4174 return mem;
4175 }
4176
4177 const Memory* copy(const void* _data, uint32_t _size)
4178 {

Callers 15

convertFunction · 0.85
mainFunction · 0.85
imageEncodeFromRgba32fFunction · 0.85
imageEncodeFunction · 0.85
edtaa3Function · 0.85
imageMakeDistFunction · 0.85
imageParseTinyExrFunction · 0.85
imageDecodeToR8Function · 0.85
imageDecodeToRgba32fFunction · 0.85
TSmallArrayVectorClass · 0.85
push_backMethod · 0.85
copyNonFrontMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected