Back to index

natlog  0.91.0
find.cc
Go to the documentation of this file.
00001 #include "pcaprecord.ih"
00002 
00003 size_t PcapRecord::find(uint32_t sequenceNr)
00004 {
00005     size_t idx = 0;
00006     for (auto &record: d_connections)
00007     {
00008         if (record && record->sequenceNr == sequenceNr)
00009             return idx;
00010         ++idx;
00011     }
00012     return numeric_limits<size_t>::max();
00013 }