#include "modules/rtp_rtcp/source/packet_loss_stats.h"
#include <cstdint>
#include <iterator>
#include <vector>
#include "rtc_base/checks.h"
static const int kBufferSize = …;
namespace webrtc {
PacketLossStats::PacketLossStats()
: … { … }
PacketLossStats::~PacketLossStats() = default;
void PacketLossStats::AddLostPacket(uint16_t sequence_number) { … }
int PacketLossStats::GetSingleLossCount() const { … }
int PacketLossStats::GetMultipleLossEventCount() const { … }
int PacketLossStats::GetMultipleLossPacketCount() const { … }
void PacketLossStats::ComputeLossCounts(
int* out_single_loss_count,
int* out_multiple_loss_event_count,
int* out_multiple_loss_packet_count) const { … }
void PacketLossStats::PruneBuffer() { … }
}