ERIS CORE

◆ read()

int32_t FASTRUN SvcDataDictionary::read ( const char *  key)

returns the int32_t value of the record

Parameters
key
Returns
int32_t

Definition at line 85 of file svcDataDictionary.cpp.

85  {
86  uint32_t h;
87  h = hash(key);
88  for(int i=0;i<DATADICT_KEYVALUE_PAIRS;i++){
89  //key found
90  if (record[i].key_hash == h) return record[i].val.int32_val;
91  }
92  //key not found
93  return 0;
94 }
svcDataDictionaryRecord record[DATADICT_KEYVALUE_PAIRS]
uint32_t hash(const char *s)
hashing function used to accelerate searches

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

Referenced by dataDictReadCallback(), AppAudioToPolyphonic::render(), AppWren::render(), ControlButton::render(), ControlSlider::render(), AppManager::update(), and AppCQT::updateOscillatorBank().

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