MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / getNumAuthorizations

Method getNumAuthorizations

Libraries/HttpClient/HttpClientSession.cpp:1094–1110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1092}
1093
1094SC::size_t SC::HttpClientSession::getNumAuthorizations() const
1095{
1096 size_t count = 0;
1097 if (not initialized)
1098 {
1099 return count;
1100 }
1101
1102 for (size_t idx = 0; idx < sessionMemory.authEntries.sizeInElements(); ++idx)
1103 {
1104 if (sessionMemory.authEntries[idx].isInUse())
1105 {
1106 count += 1;
1107 }
1108 }
1109 return count;
1110}

Callers 1

sessionLayerMethod · 0.80

Calls

no outgoing calls

Tested by 1

sessionLayerMethod · 0.64