Attempts to read up to buffer.length
bytes from this into buffer
.
this |
a Stream object. |
buffer |
output buffer |
cancellable |
optional Cancellable object, or null |
n |
max number of bytes to read. |
the number of bytes actually read, or -1 on error and set errno. |