MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetCSharpCachedName

Method GetCSharpCachedName

Source/Engine/Networking/NetworkReplicator.cpp:1334–1344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1332}
1333
1334StringAnsiView NetworkReplicator::GetCSharpCachedName(const StringAnsiView& name)
1335{
1336 // Cache method name on a heap to support C# hot-reloads (also glue code from C# passes view to the stack-only text so cache it here)
1337 StringAnsi* result;
1338 if (!CSharpCachedNames.TryGet(name, result))
1339 {
1340 result = New<StringAnsi>(name);
1341 CSharpCachedNames.Add(StringAnsiView(*result), result);
1342 }
1343 return StringAnsiView(*result);
1344}
1345
1346#endif
1347

Callers

nothing calls this directly

Calls 3

StringAnsiViewClass · 0.50
TryGetMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected