Searched refs:rem_bytes (Results 1 – 1 of 1) sorted by relevance
466 size_t CalcNextSize(size_t max_length, size_t rem_bytes) { in CalcNextSize() argument467 if (max_length == 0 || rem_bytes == 0) { in CalcNextSize()471 size_t num_frags = std::ceil(static_cast<double>(rem_bytes) / max_length); in CalcNextSize()473 static_cast<double>(rem_bytes) / num_frags + 0.5); in CalcNextSize()475 return max_length >= rem_bytes ? rem_bytes : max_length; in CalcNextSize()529 size_t rem_bytes = payload_size_ - bytes_processed; in GeneratePackets() local534 size_t packet_bytes = CalcNextSize(rem_payload_len, rem_bytes); in GeneratePackets()542 rem_bytes == packet_bytes, &packets_); in GeneratePackets()