LeviLamina
Loading...
Searching...
No Matches
TransportFeedback.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/rtc/FunctionView.h"
7#include "mc/external/webrtc/Rtpfb.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace webrtc { class TimeDelta; }
12namespace webrtc { class Timestamp; }
13namespace webrtc::rtcp { class CommonHeader; }
14// clang-format on
15
16namespace webrtc::rtcp {
17
19public:
20 // TransportFeedback inner types declare
21 // clang-format off
22 class LastChunk;
23 class ReceivedPacket;
24 // clang-format on
25
26 // TransportFeedback inner types define
28 public:
29 // member variables
30 // NOLINTBEGIN
33 // NOLINTEND
34
35 public:
36 // prevent constructor by default
37 ReceivedPacket& operator=(ReceivedPacket const&);
40 };
41
42 class LastChunk {
43 public:
44 // member variables
45 // NOLINTBEGIN
50 // NOLINTEND
51
52 public:
53 // prevent constructor by default
54 LastChunk& operator=(LastChunk const&);
55 LastChunk(LastChunk const&);
56
57 public:
58 // member functions
59 // NOLINTBEGIN
60 MCNAPI void AppendTo(::std::vector<uchar>* deltas) const;
61
62 MCNAPI void Clear();
63
64 MCNAPI void Decode(ushort chunk, uint64 max_size);
65
66 MCNAPI void DecodeOneBit(ushort chunk, uint64 max_size);
67
68 MCNAPI void DecodeRunLength(ushort chunk, uint64 max_count);
69
70 MCNAPI void DecodeTwoBit(ushort chunk, uint64 max_size);
71
72 MCNAPI bool Empty() const;
73
74 MCNAPI ushort EncodeLast() const;
75
76 MCNAPI ushort EncodeOneBit() const;
77
78 MCNAPI ushort EncodeRunLength() const;
79
80 MCNAPI ushort EncodeTwoBit(uint64 size) const;
81
82 MCNAPI LastChunk();
83 // NOLINTEND
84
85 public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCNAPI void* $ctor();
89 // NOLINTEND
90 };
91
92public:
93 // member variables
94 // NOLINTBEGIN
106 // NOLINTEND
107
108public:
109 // prevent constructor by default
110 TransportFeedback& operator=(TransportFeedback const&);
112
113public:
114 // virtual functions
115 // NOLINTBEGIN
116 // vIndex: 0
117 virtual ~TransportFeedback() /*override*/;
118
119 // vIndex: 1
120 virtual uint64 BlockLength() const /*override*/;
121
122 // vIndex: 2
123 virtual bool Create(
124 uchar* packet,
125 uint64* position,
126 uint64 max_length,
127 ::rtc::FunctionView<void(::rtc::ArrayView<uchar const>)> callback
128 ) const /*override*/;
129 // NOLINTEND
130
131public:
132 // member functions
133 // NOLINTBEGIN
134 MCNAPI ::webrtc::Timestamp BaseTime() const;
135
136 MCNAPI void Clear();
137
138 MCNAPI void ForAllPackets(::rtc::FunctionView<void(ushort, ::webrtc::TimeDelta)> handler) const;
139
140 MCNAPI ::webrtc::TimeDelta GetBaseDelta(::webrtc::Timestamp prev_timestamp) const;
141
142 MCNAPI uint64 PaddingLength() const;
143
144 MCNAPI bool Parse(::webrtc::rtcp::CommonHeader const& packet);
145
147
148 MCNAPI explicit TransportFeedback(bool include_timestamps);
149 // NOLINTEND
150
151public:
152 // constructor thunks
153 // NOLINTBEGIN
154 MCNAPI void* $ctor();
155
156 MCNAPI void* $ctor(bool include_timestamps);
157 // NOLINTEND
158
159public:
160 // destructor thunk
161 // NOLINTBEGIN
162 MCNAPI void $dtor();
163 // NOLINTEND
164
165public:
166 // virtual function thunks
167 // NOLINTBEGIN
168 MCNAPI uint64 $BlockLength() const;
169
170 MCNAPI bool $Create(
171 uchar* packet,
172 uint64* position,
173 uint64 max_length,
174 ::rtc::FunctionView<void(::rtc::ArrayView<uchar const>)> callback
175 ) const;
176 // NOLINTEND
177
178public:
179 // vftables
180 // NOLINTBEGIN
181 MCNAPI static void** $vftable();
182 // NOLINTEND
183};
184
185} // namespace webrtc::rtcp
Definition TimeDelta.h:10
Definition Timestamp.h:10
Definition CommonHeader.h:7
Definition Rtpfb.h:10
Definition TransportFeedback.h:42
MCAPI void Decode(ushort chunk, uint64 max_size)
MCAPI void DecodeTwoBit(ushort chunk, uint64 max_size)
MCAPI void DecodeRunLength(ushort chunk, uint64 max_count)
MCAPI void AppendTo(::std::vector< uchar > *deltas) const
MCAPI ushort EncodeTwoBit(uint64 size) const
MCAPI void DecodeOneBit(ushort chunk, uint64 max_size)
Definition TransportFeedback.h:27
Definition TransportFeedback.h:18
MCAPI::webrtc::Timestamp BaseTime() const
MCAPI::webrtc::TimeDelta GetBaseDelta(::webrtc::Timestamp prev_timestamp) const
MCAPI uint64 PaddingLength() const
MCAPI bool $Create(uchar *packet, uint64 *position, uint64 max_length, ::rtc::FunctionView< void(::rtc::ArrayView< uchar const >)> callback) const
MCAPI bool Parse(::webrtc::rtcp::CommonHeader const &packet)
static MCAPI void ** $vftable()
MCAPI uint64 $BlockLength() const
MCAPI void ForAllPackets(::rtc::FunctionView< void(ushort, ::webrtc::TimeDelta)> handler) const
Definition Alias.h:14