MCPcopy Create free account
hub / github.com/ddnet/ddnet / AddInt

Method AddInt

src/engine/shared/packer.cpp:22–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void CAbstractPacker::AddInt(int i)
23{
24 if(m_Error)
25 return;
26
27 unsigned char *pNext = CVariableInt::Pack(m_pCurrent, i, m_pEnd - m_pCurrent);
28 if(!pNext)
29 {
30 m_Error = true;
31 return;
32 }
33 m_pCurrent = pNext;
34}
35
36void CAbstractPacker::AddString(const char *pStr, int Limit, bool AllowTruncation)
37{

Callers 15

OnNewSnapshotMethod · 0.80
UpdateLocalTuningMethod · 0.80
EmoteMethod · 0.80
SendTeamsStateMethod · 0.80
WriteExtraMethod · 0.80
RecordPlayerMethod · 0.80
RecordDeadPlayerMethod · 0.80
RecordPlayerTeamMethod · 0.80
RecordTeamPracticeMethod · 0.80
WriteTickMethod · 0.80
RecordPlayerInputMethod · 0.80
RecordPlayerMessageMethod · 0.80

Calls

no outgoing calls

Tested by 3

ExpectAddIntFunction · 0.64
ExpectAddExtendedIntFunction · 0.64
TESTFunction · 0.64