Home
last modified time | relevance | path

Searched refs:total_written (Results 1 – 2 of 2) sorted by relevance

/device/google/cuttlefish/common/libs/fs/
Dshared_buf.cc34 size_t total_written = 0; in WriteAll() local
36 while ((written = fd->Write((void*)&(buf[total_written]), size - total_written)) > 0) { in WriteAll()
41 total_written += written; in WriteAll()
42 if (total_written == size) { in WriteAll()
46 return total_written; in WriteAll()
/device/google/cuttlefish/host/frontend/adb_connector/
Dadb_connection_maintainer.cpp57 ssize_t total_written{}; in SendAll() local
58 while (total_written < static_cast<ssize_t>(msg.size())) { in SendAll()
62 auto just_written = sock->Send(msg.c_str() + total_written, in SendAll()
63 msg.size() - total_written, MSG_NOSIGNAL); in SendAll()
67 total_written += just_written; in SendAll()