MCPcopy Create free account
hub / github.com/6dylan6/jdm / bytes2bin

Function bytes2bin

signapi.py:23–30  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

21
22
23def bytes2bin(bytes):
24 arr = []
25 for v in [m for m in bytes]:
26 arr.append(
27 [(v & 128) >> 7, (v & 64) >> 6, (v & 32) >> 5, (v & 16) >> 4, (v & 8) >> 3, (v & 4) >> 2, (v & 2) >> 1,
28 v & 1])
29 print([i for j in arr for i in j])
30 return [i for j in arr for i in j]
31
32
33def bin2bytes(arr):

Callers 2

sub_10EA4Function · 0.85
sub_4B7CFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected