Class CountingOutputStream
Wraps an existing output stream, counting the bytes that are written.
Constructors
Name | Description |
this
(stream, write_limit)
|
|
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
(bytes)
|
Manually increments the write counter without actually writing data.
|
write
(bytes, mode)
|
Writes an array of bytes to the stream.
|
write
(bytes)
|
Writes an array of bytes to the stream.
|