MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetCommand

Method GetCommand

src/protocol.cpp:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42std::string CMessageHeader::GetCommand() const
43{
44 return std::string(pchCommand, pchCommand + strnlen(pchCommand, COMMAND_SIZE));
45}
46
47bool CMessageHeader::IsValid(const MessageStartChars& pchMessageStartIn) const
48{

Callers 4

SanityCheckMessageFunction · 0.80
ProcessGetDataFunction · 0.80
ProcessMessagesFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 1

strnlenFunction · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64