示例#1
0
static uint64_t HashKeyAttributeName (TRI_associative_pointer_t* array, void const* key) {
  char const* k;

  k = (char const*) key;

  return TRI_FnvHashString(k);
}
示例#2
0
static uint64_t HashNameKeyAttributePath (TRI_associative_synced_t* array, void const* key) {
  char const* k;

  k = (char const*) key;
  
  return TRI_FnvHashString(k);
}
示例#3
0
static uint64_t HashMimetype (TRI_associative_pointer_t* array,
                              void const* element) {

  mimetype_t* entry = (mimetype_t*) element;
  return (uint64_t) TRI_FnvHashString(entry->_extension);
}
示例#4
0
uint64_t TRI_HashVariableAql (TRI_associative_pointer_t* array, 
                              void const* element) {
  TRI_aql_variable_t* variable = (TRI_aql_variable_t*) element;

  return TRI_FnvHashString(variable->_name);
}
示例#5
0
static uint64_t HashFunction (TRI_associative_pointer_t* array, 
                              void const* element) {
  TRI_aql_function_t* function = (TRI_aql_function_t*) element;

  return TRI_FnvHashString(function->_externalName);
}
示例#6
0
static uint64_t HashKeyHeader (TRI_associative_pointer_t* array, void const* key) {
  return TRI_FnvHashString((char const*) key);
}
示例#7
0
static uint64_t HashElementDocument (TRI_associative_pointer_t* array, void const* element) {
  TRI_doc_mptr_t const* e = element;
  return TRI_FnvHashString((char const*) e->_key);
}
示例#8
0
uint64_t TRI_HashStringKeyAssociativePointer (TRI_associative_pointer_t* array,
                                              void const* key) {
  return TRI_FnvHashString((char const*) key);
}
uint64_t TRI_HashBindParameterAql (TRI_associative_pointer_t* array,
                                   void const* element) {
  TRI_aql_bind_parameter_t* parameter = (TRI_aql_bind_parameter_t*) element;

  return TRI_FnvHashString(parameter->_name);
}
uint64_t HashElement (TRI_associative_pointer_t* a, void const* e) {
  data_container_s* element = (data_container_s*) e;

  return TRI_FnvHashString(element->key);
}
uint64_t HashKey (TRI_associative_synced_t* a, void const* key) {
  return TRI_FnvHashString((char const*) key);
}
示例#12
0
static uint64_t HashElementCollectionName (TRI_associative_pointer_t* array, void const* element) {
  TRI_vocbase_col_t const* e = element;
  char const* name = e->_name;

  return TRI_FnvHashString(name);
}