Searched refs:num_bytes_to_write (Results 1 – 3 of 3) sorted by relevance
125 uint32_t num_bytes_to_write = std::min(*num_bytes, available_capacity_); in WriteData() local126 if (num_bytes_to_write == 0) in WriteData()129 *num_bytes = num_bytes_to_write; in WriteData()140 std::min(options_.capacity_num_bytes - write_offset_, num_bytes_to_write); in WriteData()141 uint32_t head_bytes_to_write = num_bytes_to_write - tail_bytes_to_write; in WriteData()148 DCHECK_LE(num_bytes_to_write, available_capacity_); in WriteData()149 available_capacity_ -= num_bytes_to_write; in WriteData()151 (write_offset_ + num_bytes_to_write) % options_.capacity_num_bytes; in WriteData()156 NotifyWrite(num_bytes_to_write); in WriteData()
263 uint64_t num_bytes_to_write = std::min<uint64_t>( in ExtractCurrentEntry() local265 if (!delegate->WriteBytes(buf.get(), num_bytes_to_write)) in ExtractCurrentEntry()272 CHECK_GE(remaining_capacity, num_bytes_to_write); in ExtractCurrentEntry()273 remaining_capacity -= num_bytes_to_write; in ExtractCurrentEntry()