Lines Matching refs:offset

519     off_t offset = 0;  in send_ascii_command()  local
524 ssize_t nw = write(sock, ptr + offset, len - offset); in send_ascii_command()
531 offset += nw; in send_ascii_command()
533 } while (offset < len); in send_ascii_command()
543 off_t offset = 0; in read_ascii_response() local
546 ssize_t nr = read(sock, buffer + offset, 1); in read_ascii_response()
554 if (buffer[offset] == '\n') { in read_ascii_response()
556 buffer[offset + 1] = '\0'; in read_ascii_response()
558 offset += nr; in read_ascii_response()
559 assert(offset + 1 < size); in read_ascii_response()
598 size_t offset = 5; in test_issue_102() local
599 while (offset < 4000) { in test_issue_102()
600 offset += snprintf(buffer + offset, sizeof(buffer) - offset, in test_issue_102()
601 "%010u ", (unsigned int)offset); in test_issue_102()
669 off_t offset = 0; in safe_send() local
687 size_t num_bytes = len - offset; in safe_send()
694 ssize_t nw = write(sock, ptr + offset, num_bytes); in safe_send()
704 offset += nw; in safe_send()
706 } while (offset < len); in safe_send()
713 off_t offset = 0; in safe_recv() local
715 ssize_t nr = read(sock, ((char*)buf) + offset, len - offset); in safe_recv()
726 offset += nr; in safe_recv()
728 } while (offset < len); in safe_recv()
1721 off_t offset = 0; in test_binary_pipeline_hickup_chunk() local
1726 offset + sizeof(protocol_binary_request_no_extras) < buffersize) { in test_binary_pipeline_hickup_chunk()
1816 if ((len + offset) < buffersize) { in test_binary_pipeline_hickup_chunk()
1817 memcpy(((char*)buffer) + offset, command.bytes, len); in test_binary_pipeline_hickup_chunk()
1818 offset += len; in test_binary_pipeline_hickup_chunk()
1823 safe_send(buffer, offset, true); in test_binary_pipeline_hickup_chunk()