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

Function ser_readdata8

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

Source from the content-addressed store, hash-verified

80 s.write(AsBytes(Span{&obj, 1}));
81}
82template<typename Stream> inline uint8_t ser_readdata8(Stream &s)
83{
84 uint8_t obj;
85 s.read(AsWritableBytes(Span{&obj, 1}));
86 return obj;
87}
88template<typename Stream> inline uint16_t ser_readdata16(Stream &s)
89{
90 uint16_t obj;

Callers 6

UnserializeFunction · 0.85
ReadCompactSizeFunction · 0.85
ReadVarIntFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
UnserializeMethod · 0.85
UnserializeMethod · 0.85

Calls 2

AsWritableBytesFunction · 0.85
readMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.68