We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postgres-nio/Sources/PostgresNIO/Utilities/NIOUtils.swift
Line 82 in bfc0a99
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) } }
The text was updated successfully, but these errors were encountered:
better readFloat/Double methods, #46
07b5ed0
fix incorrect usages of NIO unsafe API (#48)
985a3f5
* fix string->bytes method, #44 * fix getUUID method, #45 * at label * better readFloat/Double methods, #46 * remove unused get float/double methods
Successfully merging a pull request may close this issue.
postgres-nio/Sources/PostgresNIO/Utilities/NIOUtils.swift
Line 82 in bfc0a99
The code above allows to read uninitialised memory. I'd recommend
The text was updated successfully, but these errors were encountered: