MCPcopy Create free account
hub / github.com/LUX-Core/lux / bufreverse

Function bufreverse

contrib/linearize/linearize-data.py:32–37  ·  view source on GitHub ↗
(in_buf)

Source from the content-addressed store, hash-verified

30 (((x) >> 8) & 0x0000ff00) | ((x) >> 24) ))
31
32def bufreverse(in_buf):
33 out_words = []
34 for i in range(0, len(in_buf), 4):
35 word = struct.unpack('@I', in_buf[i:i+4])[0]
36 out_words.append(struct.pack('@I', bytereverse(word)))
37 return ''.join(out_words)
38
39def wordreverse(in_buf):
40 out_words = []

Callers 1

calc_hash_strFunction · 0.85

Calls 4

rangeFunction · 0.85
bytereverseFunction · 0.85
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected