LeviLamina
Loading...
Searching...
No Matches
CompressedNetworkPeer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/network/NetworkSettingOptions.h"
5
6// auto generated inclusion list
7#include "mc/network/Compressibility.h"
8#include "mc/network/NetworkPeer.h"
9#include "mc/network/NetworkSettingOptions.h"
10
12public:
13 // member variables
14 // NOLINTBEGIN
15 ::ll::TypedStorage<8, 32, ::std::string> mSendBuffer;
16 ::ll::TypedStorage<8, 32, ::std::string> mReceiveBuffer;
17 ::ll::TypedStorage<1, 1, bool> mCompressionEnabled;
18 ::ll::TypedStorage<1, 1, bool> mHybridCompressionEnabled;
19 ::ll::TypedStorage<8, 8, uint64> mMaxDecompressedSize;
20 ::ll::TypedStorage<4, 20, ::NetworkSettingOptions> mNetworkSettings;
21 // NOLINTEND
22
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ~CompressedNetworkPeer() /*override*/ = default;
27
28 virtual void sendPacket(
29 ::std::string const& data,
30 ::NetworkPeer::Reliability reliability,
31 ::Compressibility compressible
32 ) /*override*/;
33
34 virtual ::NetworkPeer::NetworkStatus getNetworkStatus() const /*override*/;
35
36 virtual ::NetworkPeer::DataStatus _receivePacket(
37 ::std::string& outData,
38 ::std::shared_ptr<::std::chrono::steady_clock::time_point> const& timepointPtr
39 ) /*override*/;
40 // NOLINTEND
41
42public:
43 // virtual function thunks
44 // NOLINTBEGIN
45 MCNAPI void
46 $sendPacket(::std::string const& data, ::NetworkPeer::Reliability reliability, ::Compressibility compressible);
47
48 MCNAPI ::NetworkPeer::NetworkStatus $getNetworkStatus() const;
49
50 MCNAPI ::NetworkPeer::DataStatus $_receivePacket(
51 ::std::string& outData,
52 ::std::shared_ptr<::std::chrono::steady_clock::time_point> const& timepointPtr
53 );
54
55
56 // NOLINTEND
57
58public:
59 // vftables
60 // NOLINTBEGIN
61 MCNAPI static void** $vftable();
62 // NOLINTEND
63};
Definition CompressedNetworkPeer.h:11
MCAPI::NetworkPeer::DataStatus $_receivePacket(::std::string &outData, ::std::shared_ptr<::std::chrono::steady_clock::time_point > const &timepointPtr)
static MCAPI void ** $vftable()
MCAPI void $sendPacket(::std::string const &data, ::NetworkPeer::Reliability reliability, ::Compressibility compressible)
MCAPI::NetworkPeer::NetworkStatus $getNetworkStatus() const
Definition NetworkPeer.h:8