vibe.d beta banner
get vibe.d
0.7.30

Class CountingOutputStream

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

class CountingOutputStream
  : OutputStream;

Constructors

Constructors

NameDescription
thisConstructs a new counting stream.

Properties

Properties

NameTypeDescription
bytesWritten[get]ulongReturns the total number of bytes written.
writeLimit[get, set]ulongThe maximum number of bytes to write

Methods

Methods

NameDescription
finalizeFlushes and finalizes the stream.
flushFlushes the stream and makes sure that all data is being written to the output device.
incrementManually increments the write counter without actually writing data.
writeWrites an array of bytes to the stream.
writePipes an InputStream directly into this OutputStream.
writeWrites an array of chars to the stream.
writeDefault
Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

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