Contents

requestReadData(from:atOffset:length:readDelegate:didReadDataSelector:contextInfo:)

Asynchronously reads data of a specified length from a specified offset.

Declaration

func requestReadData(from file: ICCameraFile, atOffset offset: off_t, length: off_t, readDelegate: Any, didReadDataSelector selector: Selector, contextInfo: UnsafeMutableRawPointer?)

Discussion

The readDelegate must implement a function with the signature didReadData(data:NSData, fromFile:ICCameraFile, error:NSError, contextInfo:Any), to be called when the request is completed.

See Also

Reading Files