LeviLamina
Loading...
Searching...
No Matches
SctpPacket.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/StrongAlias.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace dcsctp { class Chunk; }
12namespace dcsctp { class VerificationTagTag; }
13namespace dcsctp { struct DcSctpOptions; }
14// clang-format on
15
16namespace dcsctp {
17
18class SctpPacket {
19public:
20 // SctpPacket inner types declare
21 // clang-format off
22 class Builder;
23 struct ChunkDescriptor;
24 // clang-format on
25
26 // SctpPacket inner types define
27 class Builder {
28 public:
29 // member variables
30 // NOLINTBEGIN
36 // NOLINTEND
37
38 public:
39 // prevent constructor by default
40 Builder& operator=(Builder const&);
41 Builder(Builder const&);
42 Builder();
43
44 public:
45 // member functions
46 // NOLINTBEGIN
47 MCNAPI ::dcsctp::SctpPacket::Builder& Add(::dcsctp::Chunk const& chunk);
48
49 MCNAPI ::std::vector<uchar> Build(bool write_checksum);
50
51 MCNAPI Builder(
53 ::dcsctp::DcSctpOptions const& options
54 );
55
56 MCNAPI uint64 bytes_remaining() const;
57
58 MCNAPI ~Builder();
59 // NOLINTEND
60
61 public:
62 // constructor thunks
63 // NOLINTBEGIN
64 MCNAPI void* $ctor(
66 ::dcsctp::DcSctpOptions const& options
67 );
68 // NOLINTEND
69
70 public:
71 // destructor thunk
72 // NOLINTBEGIN
73 MCNAPI void $dtor();
74 // NOLINTEND
75 };
76
77 struct ChunkDescriptor {
78 public:
79 // member variables
80 // NOLINTBEGIN
84 // NOLINTEND
85
86 public:
87 // prevent constructor by default
88 ChunkDescriptor& operator=(ChunkDescriptor const&);
89 ChunkDescriptor(ChunkDescriptor const&);
90 ChunkDescriptor();
91 };
92
93public:
94 // member variables
95 // NOLINTBEGIN
99 // NOLINTEND
100
101public:
102 // prevent constructor by default
103 SctpPacket& operator=(SctpPacket const&);
104 SctpPacket(SctpPacket const&);
105 SctpPacket();
106
107public:
108 // static functions
109 // NOLINTBEGIN
110 MCNAPI static ::std::optional<::dcsctp::SctpPacket>
112 // NOLINTEND
113};
114
115} // namespace dcsctp
Definition Chunk.h:7
Definition SctpPacket.h:27
MCAPI uint64 bytes_remaining() const
MCAPI::dcsctp::SctpPacket::Builder & Add(::dcsctp::Chunk const &chunk)
MCAPI Builder(::webrtc::StrongAlias<::dcsctp::VerificationTagTag, uint > verification_tag, ::dcsctp::DcSctpOptions const &options)
MCAPI void * $ctor(::webrtc::StrongAlias<::dcsctp::VerificationTagTag, uint > verification_tag, ::dcsctp::DcSctpOptions const &options)
MCAPI ::std::vector< uchar > Build(bool write_checksum)
static MCAPI ::std::optional<::dcsctp::SctpPacket > Parse(::webrtc::ArrayView< uchar const > data, ::dcsctp::DcSctpOptions const &options)
Definition VerificationTagTag.h:7
Definition ArrayView.h:8
Definition StrongAlias.h:8
Definition DcSctpOptions.h:7
Definition SctpPacket.h:77
Definition Alias.h:14