Lines Matching full:dictionary
23 * @param[in] dictionary - pointer to the dictionary.
27 static bool bejValidatePropertyOffset(const uint8_t* dictionary, in bejValidatePropertyOffset() argument
35 "Invalid property offset. Pointing to Dictionary header data\n"); in bejValidatePropertyOffset()
40 // starting from first property within the dictionary. in bejValidatePropertyOffset()
50 (const struct BejDictionaryHeader*)dictionary; in bejValidatePropertyOffset()
55 "Invalid property offset %u. It falls outside of dictionary " in bejValidatePropertyOffset()
66 // First property is present soon after the dictionary header. in bejDictGetPropertyHeadOffset()
79 int bejDictGetProperty(const uint8_t* dictionary, in bejDictGetProperty() argument
85 (const struct BejDictionaryHeader*)dictionary; in bejDictGetProperty()
87 if (!bejValidatePropertyOffset(dictionary, propertyOffset)) in bejDictGetProperty()
96 (const struct BejDictionaryProperty*)(dictionary + propertyOffset); in bejDictGetProperty()
107 const char* bejDictGetPropertyName(const uint8_t* dictionary, in bejDictGetPropertyName() argument
114 return (const char*)(dictionary + nameOffset); in bejDictGetPropertyName()
118 const uint8_t* dictionary, uint16_t startingPropertyOffset, in bejDictGetPropertyByName() argument
126 (const struct BejDictionaryHeader*)dictionary; in bejDictGetPropertyByName()
128 if (!bejValidatePropertyOffset(dictionary, curPropertyOffset)) in bejDictGetPropertyByName()
137 (const struct BejDictionaryProperty*)(dictionary + in bejDictGetPropertyByName()
140 bejDictGetPropertyName(dictionary, p->nameOffset, in bejDictGetPropertyByName()