MCPcopy Create free account
hub / github.com/catboost/catboost / TPacketsCountAdder

Class TPacketsCountAdder

library/cpp/netliba/v12/udp_socket.cpp:471–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469 }
470
471 struct TPacketsCountAdder {
472 size_t operator()(const size_t base, const TMMsgHdr& next) const {
473 return base + (size_t)next.msg_hdr.msg_iovlen;
474 }
475 };
476
477 // Flushes packet until first error.
478 // sentPackets is always updated, failedPacket is only set on non-SEND_BUFFER_OVERFLOW error.

Callers 1

FlushPacketsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected