MCPcopy Create free account
hub / github.com/KasperskyLab/hrtng / getAddedSucc

Function getAddedSucc

src/unflat.cpp:1144–1154  ·  view source on GitHub ↗

returns 0 if not found

Source from the content-addressed store, hash-verified

1142
1143 // returns 0 if not found
1144 int getAddedSucc(int src) {
1145 for(auto ae : m_AddEdges) {
1146 if(ae.first == src) {
1147 if(ae.second == -1)
1148 return mba->qty - 1;
1149 else
1150 return ae.second;
1151 }
1152 }
1153 return 0;
1154 }
1155
1156 void Add(int src, int dest) {
1157 if (dest == mba->qty - 1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected