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

Method isOwnPtr

include/daScript/misc/memory_model.h:70–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 allocated = gc_allocated;
69 }
70 __forceinline bool isOwnPtr ( char * ptr ) const {
71 return (ptr>=data) && (ptr<data+totalBytes);
72 }
73 __forceinline bool isAllocatedPtr ( char * ptr ) {
74 ptrdiff_t idx = (ptr - data) / size;
75 DAS_ASSERT ( idx>=0 && idx<ptrdiff_t(total) );

Callers 7

freeStringFunction · 0.45
freeMethod · 0.45
markMethod · 0.45
isOwnPtrMethod · 0.45
isAllocatedPtrMethod · 0.45
isOwnPtrFunction · 0.45
isOwnPtrQnDFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected