swfit 数组直接赋值

var data: [UInt8] = [UInt8].init(repeating: 0, count: 410)
printLog(data.count)
let header: [UInt8] = [0x44, 0x4D, 0xFF, 0xFF]
data.replaceSubrange(Range.init(0.. printLog(data.count)
printLog(data)

你可能感兴趣的:(swfit 数组直接赋值)