Lines Matching refs:current_depth
139 int current_depth; member
537 int current_depth, strbuf_t *json) in json_check_encode_depth() argument
549 if (current_depth <= cfg->encode_max_depth && lua_checkstack(l, 3)) in json_check_encode_depth()
556 current_depth); in json_check_encode_depth()
560 int current_depth, strbuf_t *json);
566 static void json_append_array(lua_State *l, json_config_t *cfg, int current_depth, in json_append_array() argument
581 json_append_data(l, cfg, current_depth, json); in json_append_array()
619 int current_depth, strbuf_t *json) in json_append_object() argument
651 json_append_data(l, cfg, current_depth, json); in json_append_object()
661 int current_depth, strbuf_t *json) in json_append_data() argument
679 current_depth++; in json_append_data()
680 json_check_encode_depth(l, cfg, current_depth, json); in json_append_data()
683 json_append_array(l, cfg, current_depth, json, len); in json_append_data()
685 json_append_object(l, cfg, current_depth, json); in json_append_data()
1118 json->current_depth--; in json_decode_ascend()
1123 json->current_depth++; in json_decode_descend()
1125 if (json->current_depth <= json->cfg->decode_max_depth && in json_decode_descend()
1132 json->current_depth, json->ptr - json->data); in json_decode_descend()
1263 json.current_depth = 0; in json_decode()