Lines Matching full:dictionary

24  * @param[in] dictionary - pointer to the dictionary.
28 static bool bejValidatePropertyOffset(const uint8_t* dictionary, in bejValidatePropertyOffset() argument
36 "Invalid property offset. Pointing to Dictionary header data\n"); in bejValidatePropertyOffset()
41 // starting from first property within the dictionary. in bejValidatePropertyOffset()
51 (const struct BejDictionaryHeader*)dictionary; in bejValidatePropertyOffset()
56 "Invalid property offset %u. It falls outside of dictionary " in bejValidatePropertyOffset()
66 const uint8_t* dictionary, uint32_t dictionarySize, uint16_t nameOffset, in bejValidatePropertyNameLength() argument
73 // After the property names, the dictionary has at least the in bejValidatePropertyNameLength()
79 fprintf(stderr, "Property name length goes beyond dictionary size\n"); in bejValidatePropertyNameLength()
85 const char* name = (const char*)dictionary + nameOffset; in bejValidatePropertyNameLength()
98 // First property is present soon after the dictionary header. in bejDictGetPropertyHeadOffset()
111 int bejDictGetProperty(const uint8_t* dictionary, in bejDictGetProperty() argument
117 (const struct BejDictionaryHeader*)dictionary; in bejDictGetProperty()
119 if (!bejValidatePropertyOffset(dictionary, propertyOffset)) in bejDictGetProperty()
128 (const struct BejDictionaryProperty*)(dictionary + propertyOffset); in bejDictGetProperty()
131 if (!bejValidatePropertyNameLength(dictionary, in bejDictGetProperty()
146 const char* bejDictGetPropertyName(const uint8_t* dictionary, in bejDictGetPropertyName() argument
153 return (const char*)(dictionary + nameOffset); in bejDictGetPropertyName()
157 const uint8_t* dictionary, uint16_t startingPropertyOffset, in bejDictGetPropertyByName() argument
165 (const struct BejDictionaryHeader*)dictionary; in bejDictGetPropertyByName()
167 if (!bejValidatePropertyOffset(dictionary, curPropertyOffset)) in bejDictGetPropertyByName()
176 (const struct BejDictionaryProperty*)(dictionary + in bejDictGetPropertyByName()
179 bejDictGetPropertyName(dictionary, p->nameOffset, in bejDictGetPropertyByName()