EnumerationFoundation5.9.0
Deallocator
When creating a Data
with the no-copy initializer, you may specify a Data.Deallocator
to customize the behavior of how the backing store is deallocated.
enum Deallocator
Citizens in Foundation
Members
case custom((UnsafeMutableRawPointer, Int) -> Void)
A custom deallocator.
case free
Use
free
.case none
Do nothing upon deallocation.
case unmap
Use
munmap
.