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

Function ser_readdata16be

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

Source from the content-addressed store, hash-verified

92 return le16toh(obj);
93}
94template<typename Stream> inline uint16_t ser_readdata16be(Stream &s)
95{
96 uint16_t obj;
97 s.read(AsWritableBytes(Span{&obj, 1}));
98 return be16toh(obj);
99}
100template<typename Stream> inline uint32_t ser_readdata32(Stream &s)
101{
102 uint32_t obj;

Callers 1

FUZZ_TARGET_INITFunction · 0.85

Calls 3

AsWritableBytesFunction · 0.85
be16tohFunction · 0.85
readMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.68