Searched refs:remaining_bytes (Results 1 – 4 of 4) sorted by relevance
254 size_t remaining_bytes, in CalcNextSize() argument256 if (max_payload_len == 0 || remaining_bytes == 0) { in CalcNextSize()260 return max_payload_len >= remaining_bytes ? remaining_bytes : 0; in CalcNextSize()267 size_t num_frags = remaining_bytes / max_payload_len + 1; in CalcNextSize()270 static_cast<double>(remaining_bytes) / num_frags + 0.5); in CalcNextSize()272 return max_payload_len >= remaining_bytes ? remaining_bytes in CalcNextSize()
118 size_t remaining_bytes,
156 size_t remaining_bytes = max_file_size_ - current_bytes_written_; in Write() local157 size_t write_length = std::min(data_len, remaining_bytes); in Write()
215 remaining_bytes = source_size - offset216 bytes = min([bytes_per_chunk, remaining_bytes])