Stream.readSome()
DESCRIPTION
Read some bytes from a stream. Blocks until at least 1 byte is read or the stream is closed or end of file is reached.
DECLARATION
public func readSome() throws -> Data
THROWS ERRORS
EOF:
- if end of file is reached
STOPPED:
- if the stream is stopped
OPERATION_IN_PROGRESS:
- if another read is in progress
RETURNS
the data read