swfit 数组直接赋值
2018-04-12 本文已影响17人
码农淏
var data: [UInt8] = [UInt8].init(repeating: 0, count: 410)
printLog(data.count)
let header: [UInt8] = [0x44, 0x4D, 0xFF, 0xFF]
data.replaceSubrange(Range.init(0..<header.count), with: header)
printLog(data.count)
printLog(data)