Read exactly the specified amount of bytes. Blocks until all bytes read.
If all bytes could not be read (EOF or an error occurs or stream is aborted), an error is thrown.
public func readAll(length: Int) throws -> Data
- The number of bytes to read
Throws the following errors:
- if end of file is reached
- if the stream is aborted
- if another read is in progress
the data read