| 251 | } |
| 252 | |
| 253 | byte ByteQueue::operator[](unsigned long i) const |
| 254 | { |
| 255 | for (ByteQueueNode *current=head; current; current=current->next) |
| 256 | { |
| 257 | if (i < current->CurrentSize()) |
| 258 | return (*current)[i]; |
| 259 | |
| 260 | i -= current->CurrentSize(); |
| 261 | } |
| 262 | |
| 263 | // i should be less than CurrentSize(), therefore we should not be here |
| 264 | assert(false); |
| 265 | return 0; |
| 266 | } |
nothing calls this directly
no test coverage detected