Searched refs:zero_padded (Results 1 – 1 of 1) sorted by relevance
100 def bytes_to_hex(bytes, zero_padded=True): argument102 format_string = "0{}X".format(len(bytes)*2) if zero_padded else "X"191 address = bytes_to_hex(data[1:9], zero_padded=False)192 value = bytes_to_hex(data[9:17], zero_padded=False)193 address_physical = bytes_to_hex(data[17:], zero_padded=False)205 vl = bytes_to_hex(data[0:8], zero_padded=False)206 vtype = bytes_to_hex(data[8:16], zero_padded=False)