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

Method Clear

Source/Engine/Networking/NetworkManager.cpp:683–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681}
682
683void NetworkKeys::Clear()
684{
685 ScopeLock lock(Lock);
686 LookupId.Clear();
687 LookupName.Clear();
688 PendingNames.GetValues(Table);
689 PendingNames.Clear();
690 for (auto& e : Table)
691 {
692 if (e.Type == NetworkKey::TypeName)
693 {
694 // Free allocated string
695 Allocator::Free((void*)e.Name.Get());
696 }
697 }
698 Table.Clear();
699}
700
701void NetworkKeys::Send(const NetworkKey& key, uint32 index, const NetworkConnection* target)
702{

Callers 15

StopMethod · 0.45
SendPendingMethod · 0.45
InitializeMethod · 0.45
InitMethod · 0.45
OnEnableMethod · 0.45
OnUpdateMethod · 0.45
DeserializeMethod · 0.45
DisposeMethod · 0.45
InitializeMethod · 0.45
DisposeMethod · 0.45
DisposeMethod · 0.45

Calls 3

FreeFunction · 0.50
GetValuesMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected