MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / SerializationOp

Method SerializationOp

src/compressor.h:97–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96 template <typename Stream, typename Operation>
97 inline void SerializationOp(Stream& s, Operation ser_action) {
98 if (!ser_action.ForRead()) {
99 uint64_t nVal = CompressAmount(txout.nValue);
100 READWRITE(VARINT(nVal));
101 } else {
102 uint64_t nVal = 0;
103 READWRITE(VARINT(nVal));
104 txout.nValue = DecompressAmount(nVal);
105 }
106 CScriptCompressor cscript(REF(txout.scriptPubKey));
107 READWRITE(cscript);
108 }
109};
110
111#endif // BITCOIN_COMPRESSOR_H

Callers

nothing calls this directly

Calls 3

CompressAmountFunction · 0.85
DecompressAmountFunction · 0.85
ForReadMethod · 0.45

Tested by

no test coverage detected