def PrintHexChar(data: bytearray, numBytes: int):
    """
    Prints a hexadecimal value in plain characters, along with
        the char equivalents in the following format

        00 00 00 00 00 00  ......

    :param data: data to print
    """
    for i in range(numBytes):
        print(' {:2X}'.format(data[i]))
    print('    ')
    for i in range(numBytes):
        c = data[i]
        if c <= 31 or c > 127:
            print('.')
        else:
            print('%c' % c)
        print('\n')
