Lines Matching refs:reader
2081 channel_fill(js_read_T *reader) in channel_fill() argument
2083 channel_T *channel = (channel_T *)reader->js_cookie; in channel_fill()
2084 ch_part_T part = reader->js_cookie_arg; in channel_fill()
2093 keeplen = reader->js_end - reader->js_buf; in channel_fill()
2104 mch_memmove(p, reader->js_buf, keeplen); in channel_fill()
2110 vim_free(reader->js_buf); in channel_fill()
2111 reader->js_buf = next; in channel_fill()
2123 js_read_T reader; in channel_parse_json() local
2134 reader.js_buf = channel_get(channel, part, NULL); in channel_parse_json()
2135 reader.js_used = 0; in channel_parse_json()
2136 reader.js_fill = channel_fill; in channel_parse_json()
2137 reader.js_cookie = channel; in channel_parse_json()
2138 reader.js_cookie_arg = part; in channel_parse_json()
2145 status = json_decode(&reader, &listtv, in channel_parse_json()
2194 size_t buflen = STRLEN(reader.js_buf); in channel_parse_json()
2203 reader.js_used = 0; in channel_parse_json()
2240 reader.js_used = 0; in channel_parse_json()
2252 else if (reader.js_buf[reader.js_used] != NUL) in channel_parse_json()
2255 channel_save(channel, part, reader.js_buf + reader.js_used, in channel_parse_json()
2256 (int)(reader.js_end - reader.js_buf) - reader.js_used, in channel_parse_json()
2263 vim_free(reader.js_buf); in channel_parse_json()