Searched refs:amount_to_consume (Results 1 – 2 of 2) sorted by relevance
209 void RingBuffer::AdvanceReadablePtr(int amount_to_consume) { in AdvanceReadablePtr() argument210 CHECK_GE(amount_to_consume, 0); in AdvanceReadablePtr()211 if (amount_to_consume >= bytes_used_) { in AdvanceReadablePtr()215 read_idx_ += amount_to_consume; in AdvanceReadablePtr()217 bytes_used_ -= amount_to_consume; in AdvanceReadablePtr()
302 size_t amount_to_consume = std::min(remaining_control_payload_, len); in ProcessControlFramePayload() local304 amount_to_consume); in ProcessControlFramePayload()305 current_frame_len_ += amount_to_consume; in ProcessControlFramePayload()306 data += amount_to_consume; in ProcessControlFramePayload()307 len -= amount_to_consume; in ProcessControlFramePayload()308 remaining_control_payload_ -= amount_to_consume; in ProcessControlFramePayload()309 remaining_payload_ -= amount_to_consume; in ProcessControlFramePayload()