Copies a specified range of bytes into a given buffer.
- iOS 4.0–9.0Deprecated
A buffer into which to copy the data.
You typically use
sizeto allocate a buffer of the right size.
The number of bytes from the beginning of the file to start copying.
The number of bytes to copy.
If an error occurs, upon return contains an
NSErrorobject that describes the problem.
NULLif you do not want error information.
The number of bytes actually written to
buffer. The number of bytes read will be less than the requested range if the range exceeds the file's size. If an error occurs, returns
This method returns the biggest, best representation available.