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

Method AddRaw

src/engine/shared/packer.cpp:80–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void CAbstractPacker::AddRaw(const void *pData, int Size)
81{
82 if(m_Error)
83 return;
84
85 if(m_pCurrent + Size > m_pEnd)
86 {
87 m_Error = true;
88 return;
89 }
90
91 mem_copy(m_pCurrent, pData, Size);
92 m_pCurrent += Size;
93}
94
95void CUnpacker::Reset(const void *pData, int Size)
96{

Callers 15

WriteExtraMethod · 0.80
RecordPlayerMessageMethod · 0.80
RecordTeamSaveSuccessMethod · 0.80
RecordTeamLoadSuccessMethod · 0.80
RecordDDNetVersionMethod · 0.80
RepackMsgFunction · 0.80
SendInfoMethod · 0.80
ProcessServerPacketMethod · 0.80
UpdateMethod · 0.80
HandleChecksumMethod · 0.80
RefreshMethod · 0.80
RequestImplMethod · 0.80

Calls 1

mem_copyFunction · 0.85

Tested by 2

ExpectAddString5Function · 0.64
TESTFunction · 0.64