MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetLen

Function GetLen

src/test/key_tests.cpp:243–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243static unsigned int GetLen(unsigned char chHeader)
244{
245 if (chHeader == 2 || chHeader == 3)
246 return CPubKey::COMPRESSED_SIZE;
247 if (chHeader == 4 || chHeader == 6 || chHeader == 7)
248 return CPubKey::SIZE;
249 return 0;
250}
251
252static void CmpSerializationPubkey(const CPubKey& pubkey)
253{

Callers 4

ValidSizeMethod · 0.85
SetMethod · 0.85
sizeMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected