Lines Matching refs:output_buffer_size

123         size_t output_buffer_size;  member
402 if (v->output_buffer_size > 0 && !v->write_disconnected) in varlink_test_disconnect()
422 …THOD, VARLINK_PENDING_METHOD_MORE) && (v->write_disconnected || v->output_buffer_size == 0) && v->… in varlink_test_disconnect()
442 if (v->output_buffer_size == 0) in varlink_write()
455 …n = send(v->fd, v->output_buffer + v->output_buffer_index, v->output_buffer_size, MSG_DONTWAIT|MSG… in varlink_write()
460 n = write(v->fd, v->output_buffer + v->output_buffer_index, v->output_buffer_size); in varlink_write()
475 v->output_buffer_size -= n; in varlink_write()
477 if (v->output_buffer_size == 0) in varlink_write()
1107 v->output_buffer_size > 0) in varlink_get_events()
1140 if (v->output_buffer_size == 0) in varlink_flush()
1248 if (v->output_buffer_size + r + 1 > VARLINK_BUFFER_MAX) in varlink_enqueue_json()
1253 if (v->output_buffer_size == 0) { in varlink_enqueue_json()
1257 v->output_buffer_size = r + 1; in varlink_enqueue_json()
1262 if (!GREEDY_REALLOC(v->output_buffer, v->output_buffer_size + r + 1)) in varlink_enqueue_json()
1265 memcpy(v->output_buffer + v->output_buffer_size, text, r + 1); in varlink_enqueue_json()
1266 v->output_buffer_size += r + 1; in varlink_enqueue_json()
1270 const size_t new_size = v->output_buffer_size + r + 1; in varlink_enqueue_json()
1276 … memcpy(mempcpy(n, v->output_buffer + v->output_buffer_index, v->output_buffer_size), text, r + 1); in varlink_enqueue_json()
1279 v->output_buffer_size = new_size; in varlink_enqueue_json()