Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ bytereverse
Function
bytereverse
contrib/linearize/linearize-data.py:31–33 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
29
return
x & 0xffffffff
30
31
def
bytereverse(x):
32
return
uint32(( ((x) << 24) | (((x) << 8) & 0x00ff0000) |
33
(((x) >> 8) & 0x0000ff00) | ((x) >> 24) ))
34
35
def
bufreverse(in_buf):
36
out_words = []
Callers
1
bufreverse
Function · 0.85
Calls
1
uint32
Function · 0.85
Tested by
no test coverage detected