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

Method operator==

src/twcrypto/bytequeue.cpp:315–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315bool cByteQueue::operator==(const cByteQueue& rhs) const
316{
317 const unsigned long currentSize = CurrentSize();
318
319 if (currentSize != rhs.CurrentSize())
320 return false;
321
322 for (unsigned long i = 0; i < currentSize; i++)
323 if ((*this)[i] != rhs[i])
324 return false;
325
326 return true;
327}
328
329byte cByteQueue::operator[](unsigned long i) const
330{

Callers

nothing calls this directly

Calls 1

CurrentSizeMethod · 0.45

Tested by

no test coverage detected