LeviLamina
Loading...
Searching...
No Matches
RtcpPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/rtc/FunctionView.h"
7
8namespace webrtc::rtcp {
9
10class RtcpPacket {
11public:
12 // member variables
13 // NOLINTBEGIN
15 // NOLINTEND
16
17public:
18 // prevent constructor by default
19 RtcpPacket& operator=(RtcpPacket const&);
20 RtcpPacket(RtcpPacket const&);
21 RtcpPacket();
22
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ~RtcpPacket() = default;
27
28 virtual uint64 BlockLength() const = 0;
29
30 virtual bool Create(
31 uchar* packet,
32 uint64* index,
33 uint64 max_length,
35 ) const = 0;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCNAPI uint64 HeaderLength() const;
42
43 MCNAPI bool
44 OnBufferFull(uchar* packet, uint64* index, ::rtc::FunctionView<void(::rtc::ArrayView<uchar const>)> callback) const;
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50 MCNAPI static void
51 CreateHeader(uint64 count_or_format, uchar packet_type, uint64 length, uchar* buffer, uint64* pos);
52
53 MCNAPI static void
54 CreateHeader(uint64 count_or_format, uchar packet_type, uint64 length, bool padding, uchar* buffer, uint64* pos);
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60
61 // NOLINTEND
62
63public:
64 // vftables
65 // NOLINTBEGIN
66 MCNAPI static void** $vftable();
67 // NOLINTEND
68};
69
70} // namespace webrtc::rtcp
Definition _HeaderOutputPredefine.h:313
Definition FunctionView.h:8
static MCAPI void CreateHeader(uint64 count_or_format, uchar packet_type, uint64 length, uchar *buffer, uint64 *pos)
MCAPI bool OnBufferFull(uchar *packet, uint64 *index, ::rtc::FunctionView< void(::rtc::ArrayView< uchar const >)> callback) const
MCAPI uint64 HeaderLength() const
static MCAPI void CreateHeader(uint64 count_or_format, uchar packet_type, uint64 length, bool padding, uchar *buffer, uint64 *pos)
static MCAPI void ** $vftable()
Definition buffer.h:5
Definition Alias.h:14