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

Function GetSerializeSize

src/serialize.h:1157–1160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1155
1156template <typename T>
1157uint64_t GetSerializeSize(const T& t)
1158{
1159 return (SizeComputer() << t).size();
1160}
1161
1162//! Check if type contains a stream by seeing if has a GetStream() method.
1163template<typename T>

Callers 15

coins.cppFile · 0.85
PreChecksMethod · 0.85
CheckBlockFunction · 0.85
IsBlockMutatedFunction · 0.85
InitDataMethod · 0.85
GetDustThresholdFunction · 0.85
spend.cppFile · 0.85
VerifyWitnessProgramFunction · 0.85
SignTaprootFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

SizeComputerClass · 0.85
sizeMethod · 0.45

Tested by 9

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
TestPackageSelectionMethod · 0.68
TestSatisfyMethod · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
TestNodeFunction · 0.68