This commit updates the Stream::Write method to return the number of bytes written, analogous to the current behavior of Stream::Read. This information is necessary to correctly model partial writes to a buffered stream. (e.g. Writing to a OS pipe when the pipe's buffer is smaller than the data to be written.)
This commit updates the
Stream::Write
method to return the number of bytes written, analogous to the current behavior ofStream::Read
. This information is necessary to correctly model partial writes to a buffered stream. (e.g. Writing to a OS pipe when the pipe's buffer is smaller than the data to be written.)