ioData(withCapacity:)
Allocates a buffer for input/output requests.
Declaration
func ioData(withCapacity capacity: Int) throws -> NSMutableDataParameters
- capacity:
The size, in bytes, of the buffer to allocate.
Return Value
A pointer to an allocated buffer.
Discussion
This method allocates and maps a kernel buffer that the underlying controller hardware has optimized. Using this method, the buffer doesn’t bounce to perform DMA operations.