CountingOutputStream

Wraps an existing output stream, counting the bytes that are written.

Constructors

this
this(InterfaceProxy!OutputStream stream, ulong write_limit, bool dummy)

private

Members

Aliases

write
alias write = OutputStream.write
Undocumented in source.

Functions

finalize
void finalize()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
void flush()
Undocumented in source. Be warned that the author may not have intended to support it.
increment
void increment(ulong bytes)

Manually increments the write counter without actually writing data.

write
size_t write(ubyte[] bytes, IOMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

bytesWritten
ulong bytesWritten [@property getter]

Returns the total number of bytes written.

writeLimit
ulong writeLimit [@property getter]
ulong writeLimit [@property setter]

The maximum number of bytes to write

Meta