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

Method Ser

src/compressor.h:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64 template<typename Stream>
65 void Ser(Stream &s, const CScript& script) {
66 CompressedScript compr;
67 if (CompressScript(script, compr)) {
68 s << Span{compr};
69 return;
70 }
71 unsigned int nSize = script.size() + nSpecialScripts;
72 s << VARINT(nSize);
73 s << Span{script};
74 }
75
76 template<typename Stream>
77 void Unser(Stream &s, CScript& script) {

Callers

nothing calls this directly

Calls 2

CompressScriptFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected