Searched refs:bytes_left (Results 1 – 3 of 3) sorted by relevance
309 size_t bytes_left = size; in RecvFully() local311 while (*timeout_ms > 0 && bytes_left > 0) { in RecvFully()316 int result = TEMP_FAILURE_RETRY(recv(socket_, data, bytes_left, MSG_DONTWAIT)); in RecvFully()321 bytes_left -= result; in RecvFully()325 return bytes_left == 0; in RecvFully()
1066 ssize_t bytes_left = sizeof(buf); in adb_root() local1067 while (bytes_left > 0) { in adb_root()1068 ssize_t bytes_read = adb_read(fd, cur, bytes_left); in adb_root()1076 bytes_left -= bytes_read; in adb_root()1079 if (bytes_left == 0) { in adb_root()1085 WriteFdExactly(STDOUT_FILENO, buf, sizeof(buf) - bytes_left); in adb_root()
332 size_t bytes_left = num_bytes; in GenerateRandom() local336 while (bytes_left > 0) { in GenerateRandom()337 rc = factory_.GetTpm()->GetRandomSync(bytes_left, &digest, delegate); in GenerateRandom()343 bytes_left -= digest.size; in GenerateRandom()