MCPcopy Create free account
hub / github.com/Norbyte/ositools / ToFixedString

Function ToFixedString

OsiInterface/Functions/FunctionUtilities.cpp:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace osidbg
6{
7 FixedString ToFixedString(const char * s)
8 {
9 auto stringTable = gOsirisProxy->GetLibraryManager().GetGlobalStringTable();
10 if (stringTable == nullptr) {
11 OsiError("ToFixedString(): Global string table not available!");
12 return FixedString(nullptr);
13 }
14
15 auto str = stringTable->Find(s, strlen(s));
16 return FixedString(str);
17 }
18
19 char const * NameGuidToFixedString(std::string const & nameGuid)
20 {

Callers 15

setStringMethod · 0.85
OsirisPropertyMapGetRawFunction · 0.85
OsirisPropertyMapSetRawFunction · 0.85
FindMethod · 0.85
FindMethod · 0.85
StatusGetHandleFunction · 0.85
ConstructStatusFunction · 0.85
PrepareActionFunction · 0.85
CreateWallFunction · 0.85
CreateGameObjectMoveFunction · 0.85
SetStringMethod · 0.85

Calls 3

FixedStringClass · 0.85
GetGlobalStringTableMethod · 0.80
FindMethod · 0.45

Tested by

no test coverage detected