Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
42
std::string CMessageHeader::GetCommand() const
43
{
44
return std::string(pchCommand, pchCommand + strnlen(pchCommand, COMMAND_SIZE));
45
}
46
47
bool CMessageHeader::IsValid(const MessageStartChars& pchMessageStartIn) const
48
{
Callers
4
SanityCheckMessage
Function · 0.80
ProcessGetData
Function · 0.80
ProcessMessages
Function · 0.80
BOOST_AUTO_TEST_CASE
Function · 0.80
Calls
1
strnlen
Function · 0.85
Tested by
1
BOOST_AUTO_TEST_CASE
Function · 0.64