Home
last modified time | relevance | path

Searched refs:total_read (Results 1 – 3 of 3) sorted by relevance

/device/google/cuttlefish/common/libs/fs/
Dshared_buf.cc51 size_t total_read = 0; in ReadExact() local
54 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() local
121 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()
/device/google/cuttlefish/common/libs/utils/
Dtcp_socket.cpp53 ssize_t total_read = 0; in Recv() local
54 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()
/device/google/cuttlefish/host/commands/casimir_control_server/
Dcasimir_controller.cpp129 size_t total_read = 0; in ReadExact() local
145 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()