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

Function WriteBE64

src/crypto/common.h:83–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void static inline WriteBE64(unsigned char* ptr, uint64_t x)
84{
85 uint64_t v = htobe64(x);
86 memcpy(ptr, (char*)&v, 8);
87}
88
89/** Return the smallest number n such that (x >> n) == 0 (or 64 if the highest bit in x is set. */
90uint64_t static inline CountBits(uint64_t x)

Callers 6

FinalizeMethod · 0.70
FinalizeMethod · 0.70
FinalizeMethod · 0.70
CalculateScalarOffsetFunction · 0.50
FUZZ_TARGETFunction · 0.50
SetToAmountMethod · 0.50

Calls 1

htobe64Function · 0.85

Tested by 1

FUZZ_TARGETFunction · 0.40