MCPcopy
hub / github.com/ECTO-1A/AppleJuice / parse_struct

Function parse_struct

utils/ble_read_state.py:618–627  ·  view source on GitHub ↗
(data, struct)

Source from the content-addressed store, hash-verified

616
617
618def parse_struct(data, struct):
619 result = {}
620 i = 0
621 for key in struct:
622 if key == 999:
623 result[key] = data[i:]
624 else:
625 result[key] = data[i:i + struct[key] * 2]
626 i = i + struct[key] * 2
627 return result
628
629
630def parse_os_wifi_code(code, dev):

Callers 12

parse_nearbyFunction · 0.85
parse_nandoffFunction · 0.85
parse_watch_cFunction · 0.85
parse_wifi_setFunction · 0.85
parse_hotspotFunction · 0.85
parse_wifi_jFunction · 0.85
parse_airpodsFunction · 0.85
parse_airdrop_rFunction · 0.85
parse_airprintFunction · 0.85
parse_airplayFunction · 0.85
parse_homekitFunction · 0.85
parse_siriFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected