mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
Add default parameter for CPacker::AddString
This commit is contained in:
parent
fd4491b307
commit
f6015be263
|
@ -20,7 +20,7 @@ private:
|
||||||
public:
|
public:
|
||||||
void Reset();
|
void Reset();
|
||||||
void AddInt(int i);
|
void AddInt(int i);
|
||||||
void AddString(const char *pStr, int Limit);
|
void AddString(const char *pStr, int Limit = PACKER_BUFFER_SIZE);
|
||||||
void AddRaw(const void *pData, int Size);
|
void AddRaw(const void *pData, int Size);
|
||||||
|
|
||||||
int Size() const { return (int)(m_pCurrent - m_aBuffer); }
|
int Size() const { return (int)(m_pCurrent - m_aBuffer); }
|
||||||
|
|
Loading…
Reference in a new issue