Home
last modified time | relevance | path

Searched refs:total_read (Results 1 – 4 of 4) 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.cpp52 ssize_t total_read = 0; in Recv() local
53 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()
/device/google/cuttlefish/host/frontend/adb_connector/
Dadb_connection_maintainer.cpp73 size_t total_read{}; in RecvAll() local
75 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()
/device/google/cuttlefish/host/commands/gnss_grpc_proxy/
Dgnss_grpc_proxy.cpp242 int total_read = 0; in ReadLoop() local
256 total_read += bytes_read; in ReadLoop()
260 total_read = 0; in ReadLoop()
266 total_read = 0; in ReadLoop()