ERIS CORE

◆ create() [2/3]

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

create a global r/w record

Parameters
key
val
Returns
true
false

Definition at line 63 of file svcDataDictionary.cpp.

63  {
64  if (!copyKey(key)) return false;
65  record[next].val.int32_val = val;
66  record[next].owner = 0;
69  record[next].key_hash = hash(key);
70  next++;
71  return true;
72 }
@ DDRT_READWRITE
@ DDDT_INT32
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
svcDataDictionaryDataType data_type

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

+ Here is the call graph for this function: