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

Function isAllocatedPtr

include/daScript/misc/memory_model.h:297–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 return (bigStuff.find(ptr)!=bigStuff.end());
296 }
297 __forceinline bool isAllocatedPtr( char * ptr, uint64_t size ) const {
298 if ( size<=maxShoeAllocation )
299 return shoe.isAllocatedPtr(ptr,uint32_t(size));
300 return (bigStuff.find(ptr)!=bigStuff.end());
301 }
302 uint64_t bytesAllocated() const { return totalAllocated; }
303 uint64_t maxBytesAllocated() const { return maxAllocated; }
304 uint64_t totalAlignedMemoryAllocated() const;

Callers

nothing calls this directly

Calls 3

isAllocatedPtrMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected