vibe.d beta banner
get vibe.d
0.7.30

Class CountingOutputStream

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

Inherits from

Constructors

Name Description
this Constructs a new counting stream.

Properties

Name Type Description
bytesWritten [get] ulong Returns the total number of bytes written.
writeLimit [get, set] ulong The maximum number of bytes to write

Methods

Name Description
finalize Flushes and finalizes the stream.
flush Flushes the stream and makes sure that all data is being written to the output device.
increment Manually increments the write counter without actually writing data.
write Writes an array of bytes to the stream.
write Pipes an InputStream directly into this OutputStream.
write Writes 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.