MCPcopy Create free account
hub / github.com/LUX-Core/lux / operator==

Method operator==

src/cryptopp/queue.cpp:440–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440bool ByteQueue::operator==(const ByteQueue &rhs) const
441{
442 const lword currentSize = CurrentSize();
443
444 if (currentSize != rhs.CurrentSize())
445 return false;
446
447 Walker walker1(*this), walker2(rhs);
448 byte b1, b2;
449
450 while (walker1.Get(b1) && walker2.Get(b2))
451 if (b1 != b2)
452 return false;
453
454 return true;
455}
456
457byte ByteQueue::operator[](lword i) const
458{

Callers 1

TestSecBlockFunction · 0.45

Calls 2

CurrentSizeMethod · 0.45
GetMethod · 0.45

Tested by 1

TestSecBlockFunction · 0.36