Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
17
uint16_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
24
uint32_t static inline ReadLE32(const unsigned char* ptr)
25
{
Callers
2
GetScriptOp
Function · 0.85
FUZZ_TARGET
Function · 0.85
Calls
1
le16toh
Function · 0.85
Tested by
1
FUZZ_TARGET
Function · 0.68