MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / operator==

Method operator==

src/cryptlib/queue.cpp:239–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239bool ByteQueue::operator==(const ByteQueue &rhs) const
240{
241 const unsigned long currentSize = CurrentSize();
242
243 if (currentSize != rhs.CurrentSize())
244 return false;
245
246 for (unsigned long i = 0; i<currentSize; i++)
247 if ((*this)[i] != rhs[i])
248 return false;
249
250 return true;
251}
252
253byte ByteQueue::operator[](unsigned long i) const
254{

Callers

nothing calls this directly

Calls 1

CurrentSizeMethod · 0.45

Tested by

no test coverage detected