createCountingOutputStream

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

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

Parameters

output OutputStream

The stream to forward the written data to

byte_limit ulong

Optional total write size limit after which an exception is thrown

Meta