Searched refs:total_read (Results 1 – 3 of 3) sorted by relevance
51 size_t total_read = 0; in ReadExact() local54 read = fd->Read((void*)&(buf[total_read]), size - total_read); in ReadExact()60 return total_read; in ReadExact()62 total_read += read; in ReadExact()63 } while (total_read < size); in ReadExact()64 return total_read; in ReadExact()116 size_t total_read{}; in RecvAll() local121 while (total_read < count) { in RecvAll()122 auto just_read = sock->Read(data.get() + total_read, count - total_read); in RecvAll()126 total_read += just_read; in RecvAll()
53 ssize_t total_read = 0; in Recv() local54 while (total_read < static_cast<ssize_t>(length)) { in Recv()55 auto just_read = fd_->Read(&buf[total_read], buf.size() - total_read); in Recv()66 total_read += just_read; in Recv()68 CHECK(total_read == static_cast<ssize_t>(length)); in Recv()
129 size_t total_read = 0; in ReadExact() local145 sock_->Read((void*)&(out->data()[total_read]), size - total_read); in ReadExact()150 total_read += read; in ReadExact()151 if (total_read >= size) { in ReadExact()