Lines Matching defs:amount
118 // does not move too quickly and limits the amount of data we
171 // if the remote peer sends more than this amount, the stream will be
192 // The HTTP2 specification places no limits on the amount of memory
194 // cap on the amount of memory a session can consume at any given time.
793 // Used as one of the Padding Strategy functions. Uses the maximum amount
1919 // Shrink to the actual amount of used data.
2489 size_t amount = 0; // amount of data being sent in this data frame.
2505 amount = std::min(stream->available_outbound_length_, length);
2506 Debug(session, "sending %d bytes for data frame on stream %d", amount, id);
2507 if (amount > 0) {
2511 stream->DecrementAvailableOutboundLength(amount);
2515 if (amount == 0 && stream->is_writable()) {
2535 stream->statistics_.sent_bytes += amount;
2536 return amount;
2539 void Http2Stream::IncrementAvailableOutboundLength(size_t amount) {
2540 available_outbound_length_ += amount;
2541 session_->IncrementCurrentSessionMemory(amount);
2544 void Http2Stream::DecrementAvailableOutboundLength(size_t amount) {
2545 available_outbound_length_ -= amount;
2546 session_->DecrementCurrentSessionMemory(amount);