ERIS CORE

◆ create() [3/3]

bool SvcDataDictionary::create ( const char *  key,
int32_t  val,
uint32_t *  owner 
)

create a record with ownership

Parameters
key
val
owner
Returns
true
false

Definition at line 53 of file svcDataDictionary.cpp.

53  {
54  if (!copyKey(key)) return false;
55  record[next].val.int32_val = val;
56  record[next].owner = owner;
58  record[next].key_hash = hash(key);
59  next++;
60  return true;
61 }
@ DDRT_READ
svcDataDictionaryRecord record[DATADICT_KEYVALUE_PAIRS]
bool copyKey(const char *key)
uint32_t hash(const char *s)
hashing function used to accelerate searches
svcDataDictionaryRecordType record_type

References copyKey(), DDRT_READ, hash(), value_container::int32_val, svcDataDictionaryRecord::key_hash, next, svcDataDictionaryRecord::owner, record, svcDataDictionaryRecord::record_type, and svcDataDictionaryRecord::val.

Referenced by AppManager::AppManager(), increment(), AppCQT::init(), AppAudioToPolyphonic::initialize(), and update().

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