An IO Streams Library
Jason White via Digitalmars-d
digitalmars-d at puremagic.com
Mon Feb 8 12:21:31 PST 2016
On Monday, 8 February 2016 at 12:02:08 UTC, Kagamin wrote:
> In the output stream you compare output data length to the
> input data length. In case of a transcoding stream they can be
> different. Are you trying to account for partial writes?
Reads and writes are not guaranteed to fill/write the entire
buffer you throw at it. This is what readExactly/writeExactly are
for. Those will throw an exception if the entire read/write
cannot be done.
More information about the Digitalmars-d
mailing list