makeIOFileHandle(url:)
Creates an input/output file handle instance that represents a file at a URL.
Declaration
func makeIOFileHandle(url: URL) throws -> any MTLIOFileHandleParameters
- url:
The URL to a resource file in the file system.
Return Value
A new MTLIOFileHandle instance if the method completes successfully; otherwise Swift throws an error and Objective-C returns nil.
Discussion
For information about using input/output command queues and file handles, see Resource loading.