Searched refs:total_read (Results 1 – 4 of 4) 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()
52 ssize_t total_read = 0; in Recv() local53 while (total_read < static_cast<ssize_t>(length)) { in Recv()54 auto just_read = fd_->Read(&buf[total_read], buf.size() - total_read); in Recv()65 total_read += just_read; in Recv()67 CHECK(total_read == static_cast<ssize_t>(length)); in Recv()
73 size_t total_read{}; in RecvAll() local75 while (total_read < count) { in RecvAll()76 auto just_read = sock->Read(data.get() + total_read, count - total_read); in RecvAll()81 total_read += just_read; in RecvAll()
242 int total_read = 0; in ReadLoop() local256 total_read += bytes_read; in ReadLoop()260 total_read = 0; in ReadLoop()266 total_read = 0; in ReadLoop()