-
-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
return self.withVeryUnsafeBytes { ptr in |
The code above allows to read uninitialised memory. I'd recommend
func getFloat(index: Int) -> Float? {
return self.getInteger(at: index, as: UInt32.self).map { Float(bitPattern: $0) }
}
func getDouble(index: Int) -> Double? {
return self.getInteger(at: index, as: UInt64.self).map { Double(bitPattern: $0) }
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working