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

Function ser_writedata32

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

Source from the content-addressed store, hash-verified

65 s.write(AsBytes(Span{&obj, 1}));
66}
67template<typename Stream> inline void ser_writedata32(Stream &s, uint32_t obj)
68{
69 obj = htole32(obj);
70 s.write(AsBytes(Span{&obj, 1}));
71}
72template<typename Stream> inline void ser_writedata32be(Stream &s, uint32_t obj)
73{
74 obj = htobe32(obj);

Callers 4

SerializeFunction · 0.85
WriteCompactSizeFunction · 0.85
CaptureMessageToFileFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85

Calls 3

htole32Function · 0.85
AsBytesFunction · 0.85
writeMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.68