| 1332 | } |
| 1333 | |
| 1334 | StringAnsiView 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 |
nothing calls this directly
no test coverage detected