Tries to write the complete buffer to the byte-stream.
fn write_all(&mut self, buf: &[u8]) -> Result<usize, Errno>
| Name | Description |
|---|---|
| buf | The buffer to be written. |
Returns the total number of bytes written.
The default implementation calls write multiple times until the whole buffer has been written. If an error occurs, the error is returned immediately and the number of bytes written is lost. This method should thus not be used in reliable applications.