MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / WriteString

Method WriteString

engine/Poseidon/Network/NetworkIndices.hpp:37–44  ·  view source on GitHub ↗

Write string

Source from the content-addressed store, hash-verified

35 }
36 // Write string
37 void WriteString(RString str)
38 {
39 int size = str.GetLength() + 1;
40 int minSize = _pos + size;
41 if (Size() < minSize) Resize(minSize);
42 memcpy(Data() + _pos, str, size);
43 _pos += size;
44 }
45 // return read string
46 RString ReadString()
47 {

Callers 6

AddMissionListFunction · 0.80
SendUnbanMethod · 0.80
ProcessCommandMethod · 0.80
SelectMissionMethod · 0.80
VoteMissionMethod · 0.80
DebugAnswerMethod · 0.80

Calls 1

GetLengthMethod · 0.45

Tested by

no test coverage detected