| 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 | { |
no outgoing calls
no test coverage detected