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
Name | Description |
---|---|
output | The stream to forward the written data to |
byte_limit | Optional total write size limit after which an exception is thrown |