library/src/datastructures/BP-HashTable.cc
// hash table entry is a blob type (can be used for ht_*cmp routines)
hash table entry is a blob type (can be used for ht_*cmp routines)
hash table entry is a blob type ( can be used for ht_ * cmp routines )
BP_ERROR_T ht_entry_is_blob(P_BP_HASH_TABLE_KEYED_ENTRY entry)
{
	if(!entry)
		return ERR_FAILURE;
	switch(entry->type)
	{
		case BP_HASH_TABLE_KEYED_ENTRY_TYPE_POINTER_EXTERNALLY_MANAGED:
		case BP_HASH_TABLE_KEYED_ENTRY_TYPE_C_DATASTRUCTURE_EXTERNALLY_MANAGED:
		case BP_HASH_TABLE_KEYED_ENTRY_TYPE_BINARY_BLOB:
		case BP_HASH_TABLE_KEYED_ENTRY_TYPE_UTF8_STRING:
		case BP_HASH_TABLE_KEYED_ENTRY_TYPE_UNICODE16_STRING:
		case BP_HASH_TABLE_KEYED_ENTRY_TYPE_UNICODE32_STRING:
		case BP_HASH_TABLE_KEYED_ENTRY_TYPE_UTF8_JSON:
			return ERR_SUCCESS;
			break;
		default:
			break;
	}
	return ERR_FAILURE;
}
BP_ERROR_T ht_entry_is_blob ( P_BP_HASH_TABLE_KEYED_ENTRY entry ) { if ( ! entry ) return ERR_FAILURE ; switch ( entry -> type ) { case BP_HASH_TABLE_KEYED_ENTRY_TYPE_POINTER_EXTERNALLY_MANAGED : case BP_HASH_TABLE_KEYED_ENTRY_TYPE_C_DATASTRUCTURE_EXTERNALLY_MANAGED : case BP_HASH_TABLE_KEYED_ENTRY_TYPE_BINARY_BLOB : case BP_HASH_TABLE_KEYED_ENTRY_TYPE_UTF8_STRING : case BP_HASH_TABLE_KEYED_ENTRY_TYPE_UNICODE16_STRING : case BP_HASH_TABLE_KEYED_ENTRY_TYPE_UNICODE32_STRING : case BP_HASH_TABLE_KEYED_ENTRY_TYPE_UTF8_JSON : return ERR_SUCCESS ; break ; default : break ; } return ERR_FAILURE ; }
hash table entry is a blob type (can be used for ht_*cmp routines)
hash table entry is a blob type ( can be used for ht_ * cmp routines )
// ensure we have an entry pointer // switch on the entry type // if the type matches any of our buffer types, indicate it here // return failure on mismatch