Mark PacketReader functions as inline
If we define this class in multiple objects, this avoids duplicate symbols
This commit is contained in:
parent
b23dce8ac9
commit
5401701aca
|
@ -22,7 +22,7 @@ namespace Feather::Network
|
||||||
return m_data[m_offset++];
|
return m_data[m_offset++];
|
||||||
}
|
}
|
||||||
|
|
||||||
int ReadVarInt()
|
inline int ReadVarInt()
|
||||||
{
|
{
|
||||||
int numRead = 0;
|
int numRead = 0;
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
@ -44,7 +44,7 @@ namespace Feather::Network
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t Length() const { return m_length; }
|
inline uint32_t Length() const { return m_length; }
|
||||||
private:
|
private:
|
||||||
const uint8_t const* m_data;
|
const uint8_t const* m_data;
|
||||||
const uint32_t m_length;
|
const uint32_t m_length;
|
||||||
|
|
Loading…
Reference in New Issue