Contents

FSVolume.ReadWriteHandler

Methods implemented for read and write operations that deliver data to and from the extension.

Declaration

protocol ReadWriteHandler : NSObjectProtocol

Overview

Most volumes conform to either this protocol or FSVolume.KernelOffloadedIOHandler. You can conform to both if you need to provide kernel-offloaded I/O only for certain files. In that case, files with the inhibitKernelOffloadedIO attribute set use this protocol, and those without it use FSVolume.KernelOffloadedIOHandler. Set that attribute on an item when you create it; The kernel sets each file’s routing when it first instantiates the item. This choice is immutable for the item’s lifetime. A volume that doesn’t conform to either protocol can’t support any I/O operation.

Topics

Reading and writing

See Also

Implementing optional handlers