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

Function Serialize

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

Source from the content-addressed store, hash-verified

246// clang-format off
247template <typename Stream, CharNotInt8 V> void Serialize(Stream&, V) = delete; // char serialization forbidden. Use uint8_t or int8_t
248template <typename Stream> void Serialize(Stream& s, std::byte a) { ser_writedata8(s, uint8_t(a)); }
249template <typename Stream> void Serialize(Stream& s, int8_t a) { ser_writedata8(s, uint8_t(a)); }
250template <typename Stream> void Serialize(Stream& s, uint8_t a) { ser_writedata8(s, a); }
251template <typename Stream> void Serialize(Stream& s, int16_t a) { ser_writedata16(s, uint16_t(a)); }

Callers 14

HashWriterClass · 0.70
HashedSourceWriterClass · 0.70
SerMethod · 0.70
SerMethod · 0.70
SerializeManyFunction · 0.70
SizeComputerClass · 0.70
ParamsStreamClass · 0.70
SerializeMethod · 0.70
SerializeMethod · 0.70
VectorWriterClass · 0.70
SpanWriterClass · 0.70
DataStreamClass · 0.70

Calls 12

ser_writedata8Function · 0.85
ser_writedata16Function · 0.85
ser_writedata32Function · 0.85
ser_writedata64Function · 0.85
MakeByteSpanFunction · 0.85
WriteCompactSizeFunction · 0.85
writeMethod · 0.45
SerializeMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected