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

Function WriteLE32

src/crypto/common.h:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void static inline WriteLE32(unsigned char* ptr, uint32_t x)
45{
46 uint32_t v = htole32(x);
47 memcpy(ptr, (char*)&v, 4);
48}
49
50void static inline WriteLE64(unsigned char* ptr, uint64_t x)
51{

Callers 12

ToBytesMethod · 0.70
Write4Function · 0.70
FinalizeMethod · 0.70
poly1305_authFunction · 0.70
KeystreamMethod · 0.70
CryptMethod · 0.70
Write8Function · 0.70
SignMethod · 0.50
ArithToUint256Function · 0.50
SendZmqMessageMethod · 0.50
BOOST_AUTO_TEST_CASEFunction · 0.50
FUZZ_TARGETFunction · 0.50

Calls 1

htole32Function · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.40
FUZZ_TARGETFunction · 0.40