You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Gesture.swift, Packet.swift, and ResonateShapeGenerator.swift, I get the following error:
Cannot invoke initializer for type 'UnsafePointer<UInt32>' with an argument list of type '(UnsafeRawPointer)'
public init(_ packetData: Data) throws {
var index = 0
let packetSize = UnsafePointer<UInt32>((packetData as NSData).bytes + index).pointee
if packetData.count < Int(packetSize) {
throw PacketInitializationError.notEnoughData
}
index += sizeofValue(packetSize)
guard let t = PacketType(rawValue: UnsafePointer<Int8>((packetData as NSData).bytes + index).pointee) else {
throw PacketInitializationError.invalidPacketType
}
packetType = t
index += sizeofValue(t)
id = Int(UnsafePointer<Int32>((packetData as NSData).bytes + index).pointee)
index += MemoryLayout<Int32>.size
let dataLength = Int(packetSize) - Packet.basePacketSize
if dataLength > 0 {
data = Data(bytes: UnsafePointer<UInt8>((packetData as NSData).bytes + index), count: dataLength)
}
}
The text was updated successfully, but these errors were encountered:
In Gesture.swift, Packet.swift, and ResonateShapeGenerator.swift, I get the following error:
The text was updated successfully, but these errors were encountered: