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

Function Serialize_impl

src/serialize.h:742–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740 */
741template<typename Stream, unsigned int N, typename T>
742void Serialize_impl(Stream& os, const prevector<N, T>& v, const unsigned char&)
743{
744 WriteCompactSize(os, v.size());
745 if (!v.empty())
746 os.write(MakeByteSpan(v));
747}
748
749template<typename Stream, unsigned int N, typename T, typename V>
750void Serialize_impl(Stream& os, const prevector<N, T>& v, const V&)

Callers 1

SerializeFunction · 0.85

Calls 6

WriteCompactSizeFunction · 0.85
MakeByteSpanFunction · 0.85
SerializeFunction · 0.70
sizeMethod · 0.45
emptyMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected