library/src/datastructures/BP-HashTable.cc
// checks if a memory pointer is registered as having been allocated by
// our registry.  Only chunks which are currently still registered in
// this registry will be validated as true.
checks if a memory pointer is registered as having been allocated by
our registry.  Only chunks which are currently still registered in
this registry will be validated as true.
checks if a memory pointer is registered as having been allocated by our registry . Only chunks which are currently still registered in this registry will be validated as true .
BP_BOOL BP_HashRegMemPtrValid(P_BP_HASH_TABLE_REGISTRY hreg, void *ptr)
{
	BP_GLOBAL_HASH_TABLE_OVERRIDE(BP_FALSE);
	P_BP_HASH_TABLE_MEM_PTR_ENTRY mementry = BP_HashRegMemPtrFind(hreg, ptr);
	if(!mementry)
	{
		return BP_FALSE;
	}
	return BP_TRUE;
}
BP_BOOL BP_HashRegMemPtrValid ( P_BP_HASH_TABLE_REGISTRY hreg , void * ptr ) { BP_GLOBAL_HASH_TABLE_OVERRIDE ( BP_FALSE ) ; P_BP_HASH_TABLE_MEM_PTR_ENTRY mementry = BP_HashRegMemPtrFind ( hreg , ptr ) ; if ( ! mementry ) { return BP_FALSE ; } return BP_TRUE ; }
checks if a memory pointer is registered as having been allocated by
our registry.
checks if a memory pointer is registered as having been allocated by our registry .
// macro to override hreg on null // attempt to lookup the memory pointer // return false if there is no entry // return indicating success