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#ifdef LL_PLAT_S
20 ::ll::TypedStorage<8, 8, uint64> mMaxDecompressedSize;
21#endif
22 ::ll::TypedStorage<4, 20, ::NetworkSettingOptions> mNetworkSettings;
23 // NOLINTEND
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ~CompressedNetworkPeer() /*override*/ = default;
29
30 virtual void sendPacket(
31 ::std::string const& data,
32 ::NetworkPeer::Reliability reliability,
33 ::Compressibility compressible
34 ) /*override*/;
35
36 virtual ::NetworkPeer::NetworkStatus getNetworkStatus() const /*override*/;
37
38 virtual ::NetworkPeer::DataStatus _receivePacket(
39 ::std::string& outData,
40 ::std::shared_ptr<::std::chrono::steady_clock::time_point> const& timepointPtr
41 ) /*override*/;
42 // NOLINTEND
43
44public:
45 // virtual function thunks
46 // NOLINTBEGIN
47 MCNAPI void
48 $sendPacket(::std::string const& data, ::NetworkPeer::Reliability reliability, ::Compressibility compressible);
49
50 MCNAPI ::NetworkPeer::NetworkStatus $getNetworkStatus() const;
51
52 MCNAPI ::NetworkPeer::DataStatus $_receivePacket(
53 ::std::string& outData,
54 ::std::shared_ptr<::std::chrono::steady_clock::time_point> const& timepointPtr
55 );
56
57
58 // NOLINTEND
59
60public:
61 // vftables
62 // NOLINTBEGIN
63 MCNAPI static void** $vftable();
64 // NOLINTEND
65};
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