Pack SNPEncodedSegment a bit better.

It's now 32 bytes on x64.

I am probably going to be sorting these in the future, so having these be
small is going to be useful.

P4:6806928
This commit is contained in:
Fletcher Dunn
2021-10-04 12:32:12 -07:00
parent d90c3ef95d
commit b264dee973
@@ -1378,12 +1378,12 @@ SteamNetworkingMicroseconds CSteamNetworkConnectionBase::SNP_SenderCheckInFlight
struct SNPEncodedSegment
{
static constexpr int k_cbMaxHdr = 16;
uint8 m_hdr[ k_cbMaxHdr ];
int m_cbHdr; // Doesn't include any size byte
static constexpr int k_cbMaxHdr = 15;
CSteamNetworkingMessage *m_pMsg;
int m_cbSegSize;
int m_nOffset;
int m_cbSegSize; // Number of data bytes (not including header)
int m_nOffset; // Offset of the start of the segment within the message data
uint8 m_cbHdr; // Doesn't include any size byte
uint8 m_hdr[ k_cbMaxHdr ];
inline void SetupReliable( CSteamNetworkingMessage *pMsg, int64 nBegin, int64 nEnd, int64 nLastReliableStreamPosEnd )
{