Instance Method
インスタンスメソッド
truncateFileAtOffset:
Truncates or extends the file represented by the file handle to a specified offset within the file and puts the file pointer at that position.
Declaration
宣言
- (void )truncateFileAtOffset: (unsigned long long )offset ;
Parameters
パラメータ
offset
The offset within the file that marks the new end of the file.
Discussion
議論
If the file is extended (if offset
is beyond the current end of file), the added characters are null bytes.
ファイルが延長されるならば(offset
が現在のファイル終端を越えるならば)、加えられる文字はnullバイトです。
Important
重要
This method raises NSFileHandleOperationException
if called on a file handle representing a pipe or socket, if the file descriptor is closed, or if the operation failed.
See Also
参照
Deprecated
非推奨
- readDataToEndOfFile
Reads the available data synchronously up to the end of file or maximum number of bytes.
Deprecated
非推奨
- readDataOfLength:
Reads data synchronously up to the specified number of bytes.
Deprecated
非推奨
- writeData:
Writes the specified data synchronously to the file handle.
Deprecated
非推奨
offsetInFile
The position of the file pointer within the file represented by the file handle.
Deprecated
非推奨
- seekToEndOfFile
Places the file pointer at the end of the file referenced by the file handle and returns the new file offset.
Deprecated
非推奨
- seekToFileOffset:
Moves the file pointer to the specified offset within the file represented by the receiver.
ファイルポインタをレシーバによって表されるファイル内部の指定されたオフセットに移動します。
Deprecated
非推奨
- closeFile
Disallows further access to the represented file or communications channel and signals end of file on communications channels that permit writing.
表現されたファイルまたは通信経路へのもっと先のアクセスを禁止します、そして書き込み許可する通信経路上のファイルの終端を合図します。
Deprecated
非推奨
- synchronizeFile
Causes all in-memory data and attributes of the file represented by the handle to write to permanent storage.
Deprecated
非推奨