Instance Method
インスタンスメソッド
writeData:error:
Writes the specified data synchronously to the file handle.
Declaration
宣言
- (BOOL)writeData:(NSData
*)data
error:(out NSError
* _Nullable *)error;
Parameters
パラメータ
data
The data to write to the file handle.
error
When the return value is NO
, this provides an NSError
indicating why the write operation failed.
Return Value
戻り値
Returns YES
when the data is successfullly written to the file handle.
Discussion
議論
If the handle represents a file, writing takes place at the file pointer’s current position. After it writes the data, the method advances the file pointer by the number of bytes written.
それがデータを書き出す後、メソッドはファイルポインタを書き出されたバイト数だけ前進させます。
This method provides an error if the file descriptor is closed or isn’t valid, if the handle represents an unconnected pipe or socket endpoint, if there isn’t any free space on the file system, or if any other writing error occurs.
See Also
参照
Related Documentation
関連文書
availableData
The data currently available in the receiver.
レシーバにおいて現在利用可能なデータ。