Lines Matching refs:offset
786 off_t offset = 0; in send_ascii_command() local
791 ssize_t nw = con->write((void*)con, ptr + offset, len - offset); in send_ascii_command()
798 offset += nw; in send_ascii_command()
800 } while (offset < len); in send_ascii_command()
810 off_t offset = 0; in read_ascii_response() local
813 ssize_t nr = con->read(con, buffer + offset, 1); in read_ascii_response()
821 if (buffer[offset] == '\n') { in read_ascii_response()
823 buffer[offset + 1] = '\0'; in read_ascii_response()
825 offset += nr; in read_ascii_response()
826 assert(offset + 1 < size); in read_ascii_response()
899 size_t offset = 5; in test_issue_102() local
900 while (offset < 4000) { in test_issue_102()
901 offset += snprintf(buffer + offset, sizeof(buffer) - offset, in test_issue_102()
902 "%010u ", (unsigned int)offset); in test_issue_102()
974 off_t offset = 0; in safe_send() local
992 size_t num_bytes = len - offset; in safe_send()
998 ssize_t nw = con->write(con, ptr + offset, num_bytes); in safe_send()
1008 offset += nw; in safe_send()
1010 } while (offset < len); in safe_send()
1017 off_t offset = 0; in safe_recv() local
1019 ssize_t nr = con->read(con, ((char*)buf) + offset, len - offset); in safe_recv()
1030 offset += nr; in safe_recv()
1032 } while (offset < len); in safe_recv()
2026 off_t offset = 0; in test_binary_pipeline_hickup_chunk() local
2031 offset + sizeof(protocol_binary_request_no_extras) < buffersize) { in test_binary_pipeline_hickup_chunk()
2121 if ((len + offset) < buffersize) { in test_binary_pipeline_hickup_chunk()
2122 memcpy(((char*)buffer) + offset, command.bytes, len); in test_binary_pipeline_hickup_chunk()
2123 offset += len; in test_binary_pipeline_hickup_chunk()
2128 safe_send(buffer, offset, true); in test_binary_pipeline_hickup_chunk()