Tries to write buffer.length bytes from buffer into the stream.
Will block during the operation.
This function is similar to write, except it tries to write as many bytes as requested, only stopping on an error.
On a successful write of buffer.length bytes, true is returned, and
bytes_written is set to buffer.length.
If there is an error during the operation false is returned and
throws is set to indicate the error status, bytes_written is updated to contain the number of bytes written into the
stream before the error occurred.
| this |
a OutputStream. |
| buffer |
the buffer containing the data to write. |
| bytes_written |
location to store the number of bytes that was written to the stream |
| cancellable |
optional Cancellable object, null to ignore. |
| count |
the number of bytes to write |
|
true on success, false if there was an error |