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

Method Data

engine/Poseidon/Foundation/Strings/RString.hpp:65–75  ·  view source on GitHub ↗

Null-terminated data; never null (returns "" when unset).

Source from the content-addressed store, hash-verified

63 RString(const char* a, const char* b) { _ref = CreateString(a, b); }
64 // Null-terminated data; never null (returns "" when unset).
65 const char* Data() const
66 {
67 if (_ref)
68 {
69 return _ref->Data();
70 }
71 else
72 {
73 return ""; // always return a valid string
74 }
75 }
76 // Hash key for MapStringToClass: the string is its own key.
77 __forceinline const char* GetKey() const { return Data(); }
78

Callers 6

CreateStringFunction · 0.45
MutableDataMethod · 0.45
GetLengthMethod · 0.45
MakeMutableMethod · 0.45
LowerMethod · 0.45
UpperMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected