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

Function ser_writedata8

src/serialize.h:53–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 * Lowest-level serialization and conversion.
52 */
53template<typename Stream> inline void ser_writedata8(Stream &s, uint8_t obj)
54{
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);

Callers 6

SerializeFunction · 0.85
WriteCompactSizeFunction · 0.85
WriteVarIntFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
SerializeMethod · 0.85
SerializeMethod · 0.85

Calls 2

AsBytesFunction · 0.85
writeMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.68