import struct


def _convert_unsigned(data, fmt):
    """Convert data from signed to unsigned in bulk."""
    num = len(data)
    return struct.unpack(
        "{}{}".format(num, fmt.upper()).encode("utf-8"),
        struct.pack("{}{}".format(num, fmt).encode("utf-8"), *data)
    )