MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetSendMemoryUsage

Method GetSendMemoryUsage

src/net.cpp:910–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

908}
909
910size_t V1Transport::GetSendMemoryUsage() const noexcept
911{
912 AssertLockNotHeld(m_send_mutex);
913 LOCK(m_send_mutex);
914 // Don't count sending-side fields besides m_message_to_send, as they're all small and bounded.
915 return m_message_to_send.GetMemoryUsage();
916}
917
918namespace {
919

Callers 2

SocketSendDataMethod · 0.80
PushMessageMethod · 0.80

Calls 2

DynamicUsageFunction · 0.85
GetMemoryUsageMethod · 0.45

Tested by

no test coverage detected