Take bytes type and return a string of hex in upper case, separated with space by 2 digits
(bytes:bytes, start:int=0)
| 557 | |
| 558 | |
| 559 | def bytes_to_hex(bytes:bytes, start:int=0) -> str: |
| 560 | """Take bytes type and return a string of hex in upper case, separated with space by 2 digits""" |
| 561 | return " ".join(bytes[index + start : index + 1 + start].hex().upper() for index in range(len(bytes) - start)) |
| 562 | |
| 563 | |
| 564 | def print_bytes(bytes:bytes, start:int=0, group_size:int=4) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected