| 43 | } |
| 44 | |
| 45 | unsigned int MessageQueue::CopyMessagesTo(BufferedTransformation &target, unsigned int count, const std::string &channel) const |
| 46 | { |
| 47 | ByteQueue::Walker walker(m_queue); |
| 48 | std::deque<lword>::const_iterator it = m_lengths.begin(); |
| 49 | unsigned int i; |
| 50 | for (i=0; i<count && it != --m_lengths.end(); ++i, ++it) |
| 51 | { |
| 52 | walker.TransferTo(target, *it, channel); |
| 53 | if (GetAutoSignalPropagation()) |
| 54 | target.ChannelMessageEnd(channel, GetAutoSignalPropagation()-1); |
| 55 | } |
| 56 | return i; |
| 57 | } |
| 58 | |
| 59 | void MessageQueue::swap(MessageQueue &rhs) |
| 60 | { |
nothing calls this directly
no test coverage detected