Lines Matching full:array
116 } array; member
179 * @param sub_descr_ Array of json_obj_descr describing the subobject
216 * in the array
218 * @param union_ Optional macro argument containing array or object descriptor
232 * @internal @brief Helper macro to declare an array descriptor
234 * @param elem_descr_ Element descriptor, pointer to a descriptor array
239 .array = { \
248 * @param elem_descr_ Element descriptor, pointer to a descriptor array
271 * @brief Helper macro to declare a descriptor for an array of primitives
275 * @param max_len_ Maximum number of elements in array
277 * in the array
287 * struct json_obj_descr array[] = {
300 .array = { \
309 * @brief Helper macro to declare a descriptor for an array of objects
312 * @param field_name_ Field name in the struct containing the array
313 * @param max_len_ Maximum number of elements in the array
315 * in the array
316 * @param elem_descr_ Element descriptor, pointer to a descriptor array
336 * struct json_obj_descr array[] = {
350 .array = { \
359 * @brief Helper macro to declare a descriptor for an array of array
362 * @param field_name_ Field name in the struct containing the array
363 * @param max_len_ Maximum number of elements in the array
365 * in the array
366 * @param elem_descr_ Element descriptor, pointer to a descriptor array
409 .array = { \
427 * @param struct_field_name_ Field name in the struct containing the array
428 * @param max_len_ Maximum number of elements in the array
430 * in the array
431 * @param elem_descr_ Element descriptor, pointer to a descriptor array
444 .array = { \
490 * @param sub_descr_ Array of json_obj_descr describing the subobject
517 * @param max_len_ Maximum number of elements in array
519 * in the array
533 .array = { \
548 * @param json_field_name_ String, field name of the array in JSON strings
549 * @param struct_field_name_ Field name in the struct containing the array
550 * @param max_len_ Maximum number of elements in the array
552 * in the array
553 * @param elem_descr_ Element descriptor, pointer to a descriptor array
573 * struct json_obj_descr array[] = {
591 .array = { \
620 * @param descr Pointer to the descriptor array
621 * @param descr_len Number of elements in the descriptor array. Must be less
634 * @brief Parses the JSON-encoded array pointed to by @a json, with
645 * struct json_obj_descr array[] = {
657 * @param json Pointer to JSON-encoded array to be parsed
658 * @param len Length of JSON-encoded array
659 * @param descr Pointer to the descriptor array
662 * @return 0 if array has been successfully parsed. A negative value
669 * @brief Initialize single-object array parsing
671 * JSON-encoded array data is going to be parsed one object at a time. Data is provided by
674 * Function validate that Json Array start is detected and initialize @a json object for
677 * @param json Provide storage for parser states. To be used when parsing the array.
678 * @param payload Pointer to JSON-encoded array to be parsed
679 * @param len Length of JSON-encoded array
681 * @return 0 if array start is detected and initialization is successful or negative error
687 * @brief Parse a single object from array.
689 * Parses the JSON-encoded object pointed to by @a json object array, with
693 * @param descr Pointer to the descriptor array
694 * @param descr_len Number of elements in the descriptor array. Must be less than 31.
730 * @param descr Pointer to the descriptor array
731 * @param descr_len Number of elements in the descriptor array
741 * @brief Calculates the string length to fully encode an array
743 * @param descr Pointer to the descriptor array
755 * @param descr Pointer to the descriptor array
756 * @param descr_len Number of elements in the descriptor array
769 * @brief Encodes an array in a contiguous memory location
771 * @param descr Pointer to the descriptor array
786 * @param descr Pointer to the descriptor array
787 * @param descr_len Number of elements in the descriptor array
801 * @brief Encodes an array using an arbitrary writer function
803 * @param descr Pointer to the descriptor array
816 * @brief Descriptor for a mixed-type JSON array.
818 * This structure describes a top-level JSON array whose elements may be
820 * Each element in the array is described by an entry in a descriptor array.
828 * the mixed array parsing and encoding APIs (see json_mixed_arr_parse()).
850 } array; member
861 * @brief Helper macro to declare a mixed array primitive element descriptor.
885 * @brief Helper macro to declare a mixed array object element descriptor.
889 * @param sub_descr_ Array of json_obj_descr describing the object fields.
912 * @brief Helper macro to declare a mixed array homogeneous array element descriptor.
914 * @param struct_ Struct containing the array.
916 * @param max_len_ Maximum number of elements in the array.
917 * @param elem_descr_ Element descriptor (pointer to json_obj_descr array).
936 .array = { \
944 * @brief Helper macro to declare a nested mixed array element descriptor.
946 * @param struct_ Struct containing the nested mixed array.
948 * @param sub_descr_ Mixed array descriptor for the nested array.
970 * @brief Parse a JSON mixed array into a C structure.
972 * This function parses a JSON array (which may contain elements of varying types)
973 * according to the provided mixed array descriptor and stores the result in the
978 * @param descr Descriptor array describing the structure of the mixed array.
979 * @param descr_len Number of elements in the descriptor array.
989 * @brief Encode a C structure as a JSON mixed array.
991 * This function encodes a C structure, described by the mixed array descriptor,
992 * as a JSON array.
994 * @param descr Descriptor array describing the structure of the mixed array.
995 * @param descr_len Number of elements in the descriptor array.
1001 * @return 0 if mixed array has been successfully encoded. Negative error code on failure.
1009 * @brief Encode a C structure as a JSON mixed array into a buffer.
1011 * This function encodes a C structure, described by the mixed array descriptor,
1012 * as a JSON array and writes the result into the provided buffer.
1014 * @param descr Descriptor array describing the structure of the mixed array.
1015 * @param descr_len Number of elements in the descriptor array.
1020 * @return 0 if mixed array has been successfully encoded. Negative error code on failure.
1027 * @brief Calculate the length of the encoded JSON mixed array.
1030 * structure as a JSON mixed array, according to the provided descriptor.
1032 * @param descr Descriptor array describing the structure of the mixed array.
1033 * @param descr_len Number of elements in the descriptor array.