import struct


def get_char(encoded: bytearray, idx: int) -> tuple:
    """
    Returns a char and next to be read index
    :param encoded: bytearray
    :param idx: index to start read from
    :return: tuple of char and next index
    """
    return chr(struct.unpack(">h", encoded[idx:idx + 2])[0]), idx + 2