Mark PacketReader functions as inline

If we define this class in multiple objects, this avoids duplicate symbols
This commit is contained in:
Joshua Ashton 2020-07-28 05:32:55 +01:00
parent b23dce8ac9
commit 5401701aca
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ namespace Feather::Network
return m_data[m_offset++];
}
int ReadVarInt()
inline int ReadVarInt()
{
int numRead = 0;
int result = 0;
@ -44,7 +44,7 @@ namespace Feather::Network
return result;
}
uint32_t Length() const { return m_length; }
inline uint32_t Length() const { return m_length; }
private:
const uint8_t const* m_data;
const uint32_t m_length;