def get_byte_array(integer):
    """Return the variable length bytes corresponding to the given int"""
    return int.to_bytes(integer, (integer.bit_length() + 8 - 1) // 8,
        byteorder='big', signed=False)
