@@ -324,7 +324,7 @@ public struct ExecutorJob: Sendable, ~Copyable {
324
324
/// Returns the result of executing the closure.
325
325
@available ( SwiftStdlib 6 . 2 , * )
326
326
public func withUnsafeExecutorPrivateData< R, E> ( body: ( UnsafeMutableRawBufferPointer ) throws ( E ) -> R ) throws ( E) -> R {
327
- let base = unsafe _jobGetExecutorPrivateData( self . context)
327
+ let base = _jobGetExecutorPrivateData ( self . context)
328
328
let size = unsafe 2 * MemoryLayout< OpaquePointer> . stride
329
329
return unsafe try body ( UnsafeMutableRawBufferPointer ( start: base,
330
330
count: size) )
@@ -476,21 +476,21 @@ extension ExecutorJob {
476
476
477
477
/// Allocate a specified number of bytes of uninitialized memory.
478
478
public func allocate( capacity: Int ) -> UnsafeMutableRawBufferPointer {
479
- let base = unsafe _jobAllocate( context, capacity)
479
+ let base = _jobAllocate ( context, capacity)
480
480
return unsafe UnsafeMutableRawBufferPointer( start: base, count: capacity)
481
481
}
482
482
483
483
/// Allocate uninitialized memory for a single instance of type `T`.
484
484
public func allocate< T> ( as type: T . Type ) -> UnsafeMutablePointer < T > {
485
- let base = unsafe _jobAllocate( context, MemoryLayout< T> . size)
485
+ let base = _jobAllocate ( context, MemoryLayout< T> . size)
486
486
return unsafe base. bindMemory ( to: type, capacity: 1 )
487
487
}
488
488
489
489
/// Allocate uninitialized memory for the specified number of
490
490
/// instances of type `T`.
491
491
public func allocate< T> ( capacity: Int , as type: T . Type )
492
492
-> UnsafeMutableBufferPointer < T > {
493
- let base = unsafe _jobAllocate( context, MemoryLayout < T > . stride * capacity)
493
+ let base = _jobAllocate ( context, MemoryLayout < T > . stride * capacity)
494
494
let typedBase = unsafe base. bindMemory ( to: T . self, capacity: capacity)
495
495
return unsafe UnsafeMutableBufferPointer< T > ( start: typedBase, count: capacity)
496
496
}
0 commit comments