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

readToEnd()

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

Declaration 宣言

func readToEnd() throws -> Data?

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 readData(ofLength:) as part of its implementation. このメソッドは、readData(ofLength:)をそれの実装の一部として発動します。

See Also 参照

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