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

Method CopyMessagesTo

src/cryptopp/mqueue.cpp:45–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45unsigned 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
59void MessageQueue::swap(MessageQueue &rhs)
60{

Callers

nothing calls this directly

Calls 4

TransferToMethod · 0.80
GetAutoSignalPropagationFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected