Lines Matching refs:depth
299 size_t depth; /* How deeply nested (in arrays/objects) is the input at the current offset. */ member
439 size_t depth; /* current nesting depth (for formatted printing) */ member
1451 if (input_buffer->depth >= CJSON_NESTING_LIMIT) in parse_array()
1455 input_buffer->depth++; in parse_array()
1521 input_buffer->depth--; in parse_array()
1561 output_buffer->depth++; in print_array()
1596 output_buffer->depth--; in print_array()
1607 if (input_buffer->depth >= CJSON_NESTING_LIMIT) in parse_object()
1611 input_buffer->depth++; in parse_object()
1693 input_buffer->depth--; in parse_object()
1731 output_buffer->depth++; in print_object()
1743 output_pointer = ensure(output_buffer, output_buffer->depth); in print_object()
1748 for (i = 0; i < output_buffer->depth; i++) in print_object()
1752 output_buffer->offset += output_buffer->depth; in print_object()
1804 output_pointer = ensure(output_buffer, output_buffer->format ? (output_buffer->depth + 1) : 2); in print_object()
1812 for (i = 0; i < (output_buffer->depth - 1); i++) in print_object()
1819 output_buffer->depth--; in print_object()