LeviLamina
Loading...
Searching...
No Matches
StunAttribute.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/cricket/StunAttributeValueType.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace cricket { class StunErrorCodeAttribute; }
11namespace cricket { class StunMessage; }
12namespace cricket { class StunUInt16ListAttribute; }
13namespace cricket { class StunUInt32Attribute; }
14namespace rtc { class ByteBufferReader; }
15namespace rtc { class ByteBufferWriter; }
16// clang-format on
17
18namespace cricket {
19
21public:
22 // member variables
23 // NOLINTBEGIN
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 StunAttribute& operator=(StunAttribute const&);
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 0
38 virtual ~StunAttribute() = default;
39
40 // vIndex: 1
41 virtual ::cricket::StunAttributeValueType value_type() const = 0;
42
43 // vIndex: 2
44 virtual void SetOwner(::cricket::StunMessage*);
45
46 // vIndex: 3
47 virtual bool Read(::rtc::ByteBufferReader*) = 0;
48
49 // vIndex: 4
50 virtual bool Write(::rtc::ByteBufferWriter*) const = 0;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI void ConsumePadding(::rtc::ByteBufferReader*) const;
57
58 MCAPI StunAttribute(ushort, ushort);
59
60 MCAPI void WritePadding(::rtc::ByteBufferWriter*) const;
61 // NOLINTEND
62
63public:
64 // static functions
65 // NOLINTBEGIN
66 MCAPI static ::cricket::StunAttribute*
67 Create(::cricket::StunAttributeValueType, ushort, ushort, ::cricket::StunMessage*);
68
69 MCAPI static ::std::unique_ptr<::cricket::StunErrorCodeAttribute> CreateErrorCode();
70
71 MCAPI static ::std::unique_ptr<::cricket::StunUInt16ListAttribute> CreateUInt16ListAttribute(ushort);
72
73 MCAPI static ::std::unique_ptr<::cricket::StunUInt32Attribute> CreateUInt32(ushort);
74
75 MCAPI static ::std::unique_ptr<::cricket::StunUInt16ListAttribute> CreateUnknownAttributes();
76 // NOLINTEND
77
78public:
79 // constructor thunks
80 // NOLINTBEGIN
81 MCAPI void* $ctor(ushort, ushort);
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87
88 // NOLINTEND
89
90public:
91 // virtual function thunks
92 // NOLINTBEGIN
93
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCAPI static void** $vftable();
100 // NOLINTEND
101};
102
103} // namespace cricket
Definition StunAttribute.h:20
Definition StunMessage.h:23
Definition ByteBufferReader.h:12
Definition ByteBufferWriter.h:11
Definition Read.h:6
Definition Write.h:6
Definition Alias.h:14