Browse Source

utils.py: cosmetic: add comment to int_to_list()

It may not be immediately obvious what int_to_list() does, lets add a
comment to clarify

elated: SYS#4466
Change-Id: I82639a7333c3d805f6242aa58a3d42800a804820
for/master/ret
Philipp Maier 2 years ago
parent
commit
594bdd8248
  1. 2
      utils.py

2
utils.py

@ -72,6 +72,8 @@ def swap_nibbles(array):
def list_to_int(arr):
return int(hexdump(arr), 16)
# Encode an integer number into list of bytes (e.g. 1025 becomes [4, 1])
def int_to_list(inp, num_bytes):
out = []
for i in range(0, num_bytes):

Loading…
Cancel
Save