We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e85f6a0 + ee9c2b1 commit 0d67182Copy full SHA for 0d67182
src/swift/Data.swift
@@ -110,7 +110,7 @@ public struct DispatchData : RandomAccessCollection {
110
{
111
var ptr: UnsafeRawPointer? = nil
112
var size = 0
113
- let data = CDispatch.dispatch_data_create_map(__wrapped.__wrapped, &ptr, &size)
+ let data = DispatchData(data: CDispatch.dispatch_data_create_map(__wrapped.__wrapped, &ptr, &size))
114
let contentPtr = ptr!.bindMemory(
115
to: ContentType.self, capacity: size / MemoryLayout<ContentType>.stride)
116
defer { _fixLifetime(data) }
0 commit comments