MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / hash_endpoint

Function hash_endpoint

dds/InfoRepo/FederatorConfig.cpp:121–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void hash_endpoint(::CORBA::Long& hash, const char* const endpoint, const size_t len)
122{
123 std::string toprint(endpoint, len);
124 if (len > 0)
125 {
126 for (size_t i = 0; i < len; i++)
127 {
128 hash = 31 * hash + endpoint[i];
129 }
130 }
131}
132
133#if defined (ACE_USES_WCHAR)
134void hash_endpoint(::CORBA::Long& hash, const wchar_t* const endpoint, const size_t len)

Callers 1

hash_endpointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected