Lines Matching full:dictionary
160 * @brief Get the correct property and the dictionary it belongs to.
164 * @param[in] schemaType - indicate whether to use the annotation dictionary or
165 * the main schema dictionary.
168 * @param[out] dictionary - if the function is successful, this will point to a
169 * valid dictionary to be used.
171 * property in a dictionary.
176 uint32_t sequenceNumber, const uint8_t** dictionary, in bejGetDictionaryAndProperty() argument
180 // We need to pick the correct dictionary. in bejGetDictionaryAndProperty()
183 *dictionary = params->mainDictionary; in bejGetDictionaryAndProperty()
188 *dictionary = params->annotDictionary; in bejGetDictionaryAndProperty()
193 fprintf(stderr, "Failed to select a dictionary. schema type: %u\n", in bejGetDictionaryAndProperty()
199 bejDictGetProperty(*dictionary, dictPropOffset, sequenceNumber, prop); in bejGetDictionaryAndProperty()
202 fprintf(stderr, "Failed to get dictionary property for offset: %u\n", in bejGetDictionaryAndProperty()
218 const uint8_t* dictionary; in bejGetPropName() local
223 &dictionary, &prop) != 0)) in bejGetPropName()
227 return bejDictGetPropertyName(dictionary, prop->nameOffset, in bejGetPropName()
265 // dictionary property offsets to this section's parent property in bejProcessEnding()
290 // Do not change the parent dictionary property offset since we are in bejProcessEnding()
333 // Dictionary only contains an entry for element 0. in bejHandleBejSet()
336 const uint8_t* dictionary; in bejHandleBejSet() local
340 sequenceNumber, &dictionary, &prop)); in bejHandleBejSet()
345 propName = bejDictGetPropertyName(dictionary, prop->nameOffset, in bejHandleBejSet()
383 // annotation dictionary for decoding the next segment. in bejHandleBejSet()
401 const uint8_t* dictionary; in bejHandleBejArray() local
405 &dictionary, &prop)); in bejHandleBejArray()
410 propName = bejDictGetPropertyName(dictionary, prop->nameOffset, in bejHandleBejArray()
449 // annotation dictionary for decoding the next segment. in bejHandleBejArray()
513 const uint8_t* dictionary; in bejHandleBejEnum() local
517 sequenceNumber, &dictionary, &prop)); in bejHandleBejEnum()
522 propName = bejDictGetPropertyName(dictionary, prop->nameOffset, in bejHandleBejEnum()
538 bejDictGetProperty(dictionary, prop->childPointerOffset, in bejHandleBejEnum()
541 dictionary, enumValueProp->nameOffset, enumValueProp->nameLength); in bejHandleBejEnum()
701 * @param[in] schemaDictionary - main schema dictionary to use.
702 * @param[in] annotationDictionary - annotation dictionary
728 // At start, parent property from the main dictionary is the in bejDecode()
926 fprintf(stderr, "Invalid schema dictionary size: %u. Expected: %u.\n", in bejDecodePldmBlock()
938 "Invalid annotation dictionary size: %u. Expected: %u.\n", in bejDecodePldmBlock()
952 "Invalid error dictionary size: %u. Expected: %u.\n", in bejDecodePldmBlock()