Instance Method インスタンスメソッド

readDataToEndOfFileAndReturnError:

Reads the available data synchronously up to the end of file or maximum number of bytes.

Declaration 宣言

- (NSData *)readDataToEndOfFileAndReturnError:(out NSError * _Nullable *)error;

Parameters パラメータ

error

When the return value is nil, this provides an NSError indicating why the read operation failed.

Return Value 戻り値

The data available through the file handle up to the maximum size that can be represented by an NSData object or, if a communications channel, until an end-of-file indicator is returned.

Discussion 議論

This method invokes readDataOfLength: as part of its implementation. このメソッドは、readDataOfLength:をそれの実装の一部として発動します。

See Also 参照

Reading from a File Handle Synchronously ファイルハンドルから同期的に読み出す