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