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)
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)
本文标题:swfit 数组直接赋值
本文链接:https://www.haomeiwen.com/subject/rqixkftx.html
网友评论