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

Function isOwnPtr

include/daScript/misc/memory_model.h:292–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290 char * reallocate ( char * ptr, uint64_t size, uint64_t nsize );
291 __forceinline int depth() const { return shoe.depth(); }
292 __forceinline bool isOwnPtr( char * ptr, uint64_t size ) const {
293 if ( size<=maxShoeAllocation )
294 return shoe.isOwnPtr(ptr,uint32_t(size));
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));

Callers 1

recognizeMethod · 0.85

Calls 3

isOwnPtrMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected