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 6a4d88f commit 23ffb2aCopy full SHA for 23ffb2a
Sources/Overlays/_Testing_WinSDK/Support/Additions/GUIDAdditions.swift
@@ -17,10 +17,10 @@ public import WinSDK
17
18
@_spi(_)
19
extension GUID: @retroactive Equatable, @retroactive Hashable {
20
+ /// This GUID as an integer.
21
var uint128Value: UInt128 {
- unsafe withUnsafeBytes(of: self) { buffer in
22
- // GUID is 32-bit-aligned only, so use loadUnaligned().
23
- unsafe buffer.baseAddress!.loadUnaligned(as: UInt128.self)
+ withUnsafeBytes(of: self) { buffer in
+ buffer.baseAddress!.loadUnaligned(as: UInt128.self)
24
}
25
26
0 commit comments