Searched refs:amount_to_consume (Results 1 – 2 of 2) sorted by relevance
223 void RingBuffer::AdvanceReadablePtr(int amount_to_consume) { in AdvanceReadablePtr() argument224 CHECK_GE(amount_to_consume, 0); in AdvanceReadablePtr()225 if (amount_to_consume >= bytes_used_) { in AdvanceReadablePtr()229 read_idx_ += amount_to_consume; in AdvanceReadablePtr()231 bytes_used_ -= amount_to_consume; in AdvanceReadablePtr()
716 size_t amount_to_consume = std::min(remaining_control_payload_, len); in ProcessControlFramePayload() local718 amount_to_consume); in ProcessControlFramePayload()719 current_frame_len_ += amount_to_consume; in ProcessControlFramePayload()720 data += amount_to_consume; in ProcessControlFramePayload()721 len -= amount_to_consume; in ProcessControlFramePayload()722 remaining_control_payload_ -= amount_to_consume; in ProcessControlFramePayload()723 remaining_payload_ -= amount_to_consume; in ProcessControlFramePayload()