Lines Matching refs:write_now
266 size_t write_now = size; in Write() local
267 if (current_range_left_ < write_now) { in Write()
268 write_now = current_range_left_; in Write()
271 if (!android::base::WriteFully(fd_, data, write_now)) { in Write()
273 PLOG(ERROR) << "Failed to write " << write_now << " bytes of data"; in Write()
277 data += write_now; in Write()
278 size -= write_now; in Write()
280 current_range_left_ -= write_now; in Write()
281 written += write_now; in Write()
380 size_t write_now = std::min(size, nti->writer->AvailableSpace()); in receive_new_data() local
381 if (nti->writer->Write(data, write_now) != write_now) { in receive_new_data()
382 LOG(ERROR) << "Failed to write " << write_now << " bytes."; in receive_new_data()
386 data += write_now; in receive_new_data()
387 size -= write_now; in receive_new_data()
444 size_t write_now = buffer_size - available_out; in receive_brotli_new_data() local
445 if (nti->writer->Write(buffer, write_now) != write_now) { in receive_brotli_new_data()
446 LOG(ERROR) << "Failed to write " << write_now << " bytes."; in receive_brotli_new_data()