write
Description:
Attempts to write up to buffer.length
bytes of buffer
into this.
Parameters:
this |
a Stream object |
buffer |
buffer to write. |
cancellable |
optional Cancellable object, or null |
n |
number of bytes to write |
Returns:
the number of bytes written to the stream, or -1 on error along with setting errno. |