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

Function ser_writedata16

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

Source from the content-addressed store, hash-verified

55 s.write(AsBytes(Span{&obj, 1}));
56}
57template<typename Stream> inline void ser_writedata16(Stream &s, uint16_t obj)
58{
59 obj = htole16(obj);
60 s.write(AsBytes(Span{&obj, 1}));
61}
62template<typename Stream> inline void ser_writedata16be(Stream &s, uint16_t obj)
63{
64 obj = htobe16(obj);

Callers 3

SerializeFunction · 0.85
WriteCompactSizeFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85

Calls 3

htole16Function · 0.85
AsBytesFunction · 0.85
writeMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.68