MCPcopy Create free account
hub / github.com/Barracuda09/SATPI / findSessionNumberForRecource

Method findSessionNumberForRecource

src/decrypt/dvbca/DVBCA.cpp:236–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 }
235
236 std::size_t DVBCA::findSessionNumberForRecource(const std::size_t resource) const {
237 for (std::size_t i = 0; i < MAX_SESSIONS; ++i) {
238 if (_sessions[i]._resource == resource) {
239 SI_LOG_DEBUG("Found sessionNB: %d for Resource: 0x%08X", _sessions[i]._sessionNB, _sessions[i]._resource);
240 return _sessions[i]._sessionNB;
241 }
242 }
243 return 0;
244 }
245
246 void DVBCA::clearSessionFor(std::size_t sessionNB) {
247 _sessions[sessionNB]._resource = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected