vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function createCountingOutputStream

Creates a proxy stream that counts the number of bytes written.

CountingOutputStream createCountingOutputStream(OutputStream) (
  OutputStream output,
  ulong byte_limit = (ulong).max
)
if (isOutputStream!OutputStream);

Parameters

NameDescription
output The stream to forward the written data to
byte_limit Optional total write size limit after which an exception is thrown
Authors

Sönke Ludwig

Copyright

© 2012 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.