Network/ENetPeer: Reduce memory usage

This commit is contained in:
Lynix 2019-12-29 11:56:13 +01:00
parent 0bcd8769fe
commit 0b825680de
2 changed files with 9 additions and 9 deletions

View File

@ -58,9 +58,9 @@ namespace Nz
inline ENetPeerState GetState() const;
inline UInt64 GetTotalByteReceived() const;
inline UInt64 GetTotalByteSent() const;
inline UInt64 GetTotalPacketReceived() const;
inline UInt64 GetTotalPacketLost() const;
inline UInt64 GetTotalPacketSent() const;
inline UInt32 GetTotalPacketReceived() const;
inline UInt32 GetTotalPacketLost() const;
inline UInt32 GetTotalPacketSent() const;
inline bool HasPendingCommands();
@ -239,12 +239,12 @@ namespace Nz
UInt32 m_timeoutLimit;
UInt32 m_timeoutMaximum;
UInt32 m_timeoutMinimum;
UInt32 m_totalPacketReceived;
UInt32 m_totalPacketLost;
UInt32 m_totalPacketSent;
UInt32 m_windowSize;
UInt64 m_totalByteReceived;
UInt64 m_totalByteSent;
UInt64 m_totalPacketReceived;
UInt64 m_totalPacketLost;
UInt64 m_totalPacketSent;
bool m_isSimulationEnabled;
};
}

View File

@ -72,17 +72,17 @@ namespace Nz
return m_totalByteSent;
}
inline UInt64 ENetPeer::GetTotalPacketReceived() const
inline UInt32 ENetPeer::GetTotalPacketReceived() const
{
return m_totalPacketReceived;
}
inline UInt64 ENetPeer::GetTotalPacketLost() const
inline UInt32 ENetPeer::GetTotalPacketLost() const
{
return m_totalPacketLost;
}
inline UInt64 ENetPeer::GetTotalPacketSent() const
inline UInt32 ENetPeer::GetTotalPacketSent() const
{
return m_totalPacketSent;
}