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