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 @Sendable (Data?, (any Error)?) -> Void)func requestReadData(atOffset offset: off_t, length: off_t) async throws -> DataDiscussion
The completion block executes on an any available queue; often this is not the main queue.