We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f28e9ff commit 5e4a09dCopy full SHA for 5e4a09d
sdk/swift/Sources/Hedera/Data+Extensions.swift
@@ -93,11 +93,7 @@ extension Data {
93
extension Data {
94
internal func withUnsafeTypedBytes<R>(_ body: (UnsafeBufferPointer<UInt8>) throws -> R) rethrows -> R {
95
try self.withUnsafeBytes { pointer in
96
-#if swift(>=5.7)
97
- try body(pointer.assumingMemoryBound(to: UInt8.self))
98
-#else
99
try body(pointer.bindMemory(to: UInt8.self))
100
-#endif
101
}
102
103
0 commit comments