- getOffset:error:
Get the current position of the file pointer within the file.
- seekToOffset:error:
Moves the file pointer to the specified offset within the file.
Availability 有効性
Technology
- (BOOL)seekToEndReturningOffset:(out unsigned long long *)offsetInFile
error:(out NSError
* _Nullable *)error;
offsetInFile
When the return value is YES
, this provides the file pointer’s offset at the end of the file. This should therefore equal to the size of 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.
- getOffset:error:
- seekToOffset:error: