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

Method operator[]

src/twcrypto/bytequeue.cpp:329–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329byte cByteQueue::operator[](unsigned long i) const
330{
331 for (cByteQueueNode* current = head; current; current = current->next)
332 {
333 if (i < current->CurrentSize())
334 return (*current)[i];
335
336 i -= current->CurrentSize();
337 }
338
339 // i should be less than CurrentSize(), therefore we should not be here
340 assert(false);
341 return 0;
342}

Callers

nothing calls this directly

Calls 1

CurrentSizeMethod · 0.45

Tested by

no test coverage detected