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

Method Serialize

src/pubkey.h:141–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 //! Implement serialization, as if this was a byte vector.
140 template <typename Stream>
141 void Serialize(Stream& s) const
142 {
143 unsigned int len = size();
144 ::WriteCompactSize(s, len);
145 s.write(AsBytes(Span{vch, len}));
146 }
147 template <typename Stream>
148 void Unserialize(Stream& s)
149 {

Callers

nothing calls this directly

Calls 4

WriteCompactSizeFunction · 0.85
AsBytesFunction · 0.85
sizeFunction · 0.70
writeMethod · 0.45

Tested by

no test coverage detected