MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / allocate

Function allocate

include/daScript/simulate/simulate.h:371–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369 }
370
371 __forceinline char * allocate ( uint64_t size, const LineInfo * at = nullptr ) {
372 auto aptr = heap->impl_allocate(size);
373 if ( !aptr && size ) throw_out_of_memory(false, size, at);
374 if ( instrumentAllocations ) onAllocate(aptr, size, at ? *at : LineInfo());
375 return aptr;
376 }
377
378 __forceinline char * reallocate ( char * ptr, uint64_t oldSize, uint64_t size, const LineInfo * at ) {
379 auto aptr = heap->impl_reallocate(ptr, oldSize, size);

Callers 15

TESTFunction · 0.85
allocateMethod · 0.85
allocateMethod · 0.85
growMethod · 0.85
rehashMethod · 0.85
allocate_pageMethod · 0.85
get_mutable_bufferFunction · 0.85
convert_buffer_genericFunction · 0.85
convert_buffer_latin1Function · 0.85
createMethod · 0.85

Calls 2

impl_allocateMethod · 0.80
LineInfoFunction · 0.70

Tested by 4

TESTFunction · 0.68
allocateMethod · 0.68
allocateMethod · 0.68
DOCTEST_DEFINE_DECORATORFunction · 0.68