import struct


def unpack_channel(fileobj, channel_size):
    """Given a file object, read channel_size number of bytes from the fileobj, unpack
    the resulting buffer as a char array with correct size. Assume native byte order.
    Returns a List(int) of length = channel_size."""
    fmt = f'@{channel_size}B'
    buff = fileobj.read(channel_size)
    return list(struct.unpack(fmt, buff))