read


Description:

public virtual ssize_t read (char[] buffer, Cancellable? cancellable = null) throws Error

Attempts to read up to buffer.length bytes from this into buffer.

Parameters:

this

a Stream object.

buffer

output buffer

cancellable

optional Cancellable object, or null

n

max number of bytes to read.

Returns:

the number of bytes actually read, or -1 on error and set errno.