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 

PARAMETERS

None.

ERRORS

Throws the following errors:

EOF:
if end of file is reached
ABORTED:
if the stream is aborted
OPERATION_IN_PROGRESS:
if another read is in progress

RETURN VALUES

the data read

EXAMPLES

None.