Instance Method

requestReadData(atOffset:length:completion:)

Requests to asynchronously read data of a specified length from a specified offset, then executes the completion block.

Declaration

func requestReadData(atOffset offset: off_t, length: off_t, completion: @escaping (Data?, Error?) -> Void)

Discussion

The completion block executes on an any available queue; often this is not the main queue.