- seekToEndReturningOffset:error:
Places the file pointer at the end of the file referenced by the file handle and returns the new file offset.
- seekToOffset:error:
Moves the file pointer to the specified offset within the file.
Availability 有効性
Technology
- (BOOL)getOffset:(out unsigned long long *)offsetInFile
error:(out NSError
* _Nullable *)error;
offsetInFile
When the return value is YES
, this provides the current position of the file pointer within the file.
error
When the return value is NO
, this provides an NSError
indicating why the operation failed.
Returns NO
when there was an error. Otherwise, returns YES
and sets the offset
parameter’s pointee to the current position of the file pointer within the file.
Returns NO
if called on a file handle representing a pipe or socket, or if the file descriptor is closed.
- seekToEndReturningOffset:error:
- seekToOffset:error: