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

Function WriteLE16

src/crypto/common.h:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void static inline WriteLE16(unsigned char* ptr, uint16_t x)
39{
40 uint16_t v = htole16(x);
41 memcpy(ptr, (char*)&v, 2);
42}
43
44void static inline WriteLE32(unsigned char* ptr, uint32_t x)
45{

Callers 2

CScriptClass · 0.85
FUZZ_TARGETFunction · 0.85

Calls 1

htole16Function · 0.85

Tested by 1

FUZZ_TARGETFunction · 0.68