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

Function ReadLE16

src/crypto/common.h:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <compat/endian.h>
16
17uint16_t static inline ReadLE16(const unsigned char* ptr)
18{
19 uint16_t x;
20 memcpy((char*)&x, ptr, 2);
21 return le16toh(x);
22}
23
24uint32_t static inline ReadLE32(const unsigned char* ptr)
25{

Callers 2

GetScriptOpFunction · 0.85
FUZZ_TARGETFunction · 0.85

Calls 1

le16tohFunction · 0.85

Tested by 1

FUZZ_TARGETFunction · 0.68