def array_copy(data: (bytes or bytearray), data_index: int, bs: (bytes or
    bytearray), bs_index: int, length: int):
    """从bs的bs_index开始取长度为le的数据写入到data的data_index位置"""
    data[data_index:data_index + length] = bs[bs_index:bs_index + length]
