ERIS CORE

◆ readf()

float32_t FASTRUN SvcDataDictionary::readf ( const char *  key)

returns the float32_t value of the record

Parameters
key
Returns
float32_t

Definition at line 96 of file svcDataDictionary.cpp.

96  {
97  uint32_t h;
98  h = hash(key);
99  for(int i=0;i<DATADICT_KEYVALUE_PAIRS;i++){
100  //key found
101  if (record[i].key_hash == h) return record[i].val.float32_val;
102  }
103  //key not found
104  return 0;
105 }
svcDataDictionaryRecord record[DATADICT_KEYVALUE_PAIRS]
uint32_t hash(const char *s)
hashing function used to accelerate searches

References value_container::float32_val, hash(), record, and svcDataDictionaryRecord::val.

Referenced by dataDictReadFloatCallback(), and AppAudioToPolyphonic::initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: