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

Function ser_readdata32

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

Source from the content-addressed store, hash-verified

98 return be16toh(obj);
99}
100template<typename Stream> inline uint32_t ser_readdata32(Stream &s)
101{
102 uint32_t obj;
103 s.read(AsWritableBytes(Span{&obj, 1}));
104 return le32toh(obj);
105}
106template<typename Stream> inline uint32_t ser_readdata32be(Stream &s)
107{
108 uint32_t obj;

Callers 3

UnserializeFunction · 0.85
ReadCompactSizeFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85

Calls 3

AsWritableBytesFunction · 0.85
le32tohFunction · 0.85
readMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.68