Lines Matching refs:input_buffer_index
117 size_t input_buffer_index; member
508 if (MALLOC_SIZEOF_SAFE(v->input_buffer) <= v->input_buffer_index + v->input_buffer_size) { in varlink_read()
513 if (v->input_buffer_index == 0) { in varlink_read()
525 memcpy(b, v->input_buffer + v->input_buffer_index, v->input_buffer_size); in varlink_read()
528 v->input_buffer_index = 0; in varlink_read()
532 rs = MALLOC_SIZEOF_SAFE(v->input_buffer) - (v->input_buffer_index + v->input_buffer_size); in varlink_read()
536 … n = recv(v->fd, v->input_buffer + v->input_buffer_index + v->input_buffer_size, rs, MSG_DONTWAIT); in varlink_read()
541 n = read(v->fd, v->input_buffer + v->input_buffer_index + v->input_buffer_size, rs); in varlink_read()
577 assert(v->input_buffer_index + v->input_buffer_size <= MALLOC_SIZEOF_SAFE(v->input_buffer)); in varlink_parse_message()
579 begin = v->input_buffer + v->input_buffer_index; in varlink_parse_message()
597 v->input_buffer_index = v->input_buffer_size = v->input_buffer_unscanned = 0; in varlink_parse_message()
604 v->input_buffer_index = 0; in varlink_parse_message()
606 v->input_buffer_index += sz; in varlink_parse_message()