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

Method ChannelPutModifiable2

src/cryptopp/channels.cpp:245–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245size_t ChannelSwitch::ChannelPutModifiable2(const std::string &channel, byte *inString, size_t length, int messageEnd, bool blocking)
246{
247 ChannelRouteIterator it(*this);
248 it.Reset(channel);
249
250 if (!it.End())
251 {
252 BufferedTransformation &target = it.Destination();
253 const std::string &targetChannel = it.Channel();
254 it.Next();
255 if (it.End()) // there is only one target channel
256 return target.ChannelPutModifiable2(targetChannel, inString, length, messageEnd, blocking);
257 }
258
259 return ChannelPut2(channel, inString, length, messageEnd, blocking);
260}
261
262void ChannelSwitch::AddDefaultRoute(BufferedTransformation &destination)
263{

Callers 4

PutModifiable2Function · 0.45
TransferTo2Method · 0.45
ChannelPutModifiable2Function · 0.45
OutputModifiableMethod · 0.45

Calls 4

EndMethod · 0.80
ChannelPut2Function · 0.70
ResetMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected