MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_is_valid_pointer

Function mi_is_valid_pointer

3rd/mimalloc-2.0.9/src/segment-cache.c:383–385  ·  view source on GitHub ↗

Is this a valid pointer in our heap?

Source from the content-addressed store, hash-verified

381
382// Is this a valid pointer in our heap?
383static bool mi_is_valid_pointer(const void* p) {
384 return (_mi_segment_of(p) != NULL);
385}
386
387mi_decl_nodiscard mi_decl_export bool mi_is_in_heap_region(const void* p) mi_attr_noexcept {
388 return mi_is_valid_pointer(p);

Callers 1

mi_is_in_heap_regionFunction · 0.85

Calls 1

_mi_segment_ofFunction · 0.85

Tested by

no test coverage detected