CountingInputStream

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

Constructors

this
deprecated this(InputStream stream)
Undocumented in source.
this
this(InterfaceProxy!InputStream stream, bool dummy)

private

Members

Aliases

read
alias read = InputStream.read
Undocumented in source.

Functions

increment
void increment(ulong bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
peek
const(ubyte)[] peek()
Undocumented in source. Be warned that the author may not have intended to support it.
read
size_t read(ubyte[] dst, IOMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

bytesRead
ulong bytesRead [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
dataAvailableForRead
bool dataAvailableForRead [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
leastSize
ulong leastSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From InputStream

empty
bool empty [@property getter]

Returns true iff the end of the input stream has been reached.

leastSize
ulong leastSize [@property getter]

(Scheduled for deprecation) Returns the maximum number of bytes that are known to remain in this stream until the end is reached.

dataAvailableForRead
bool dataAvailableForRead [@property getter]

(Scheduled for deprecation) Queries if there is data available for immediate, non-blocking read.

peek
const(ubyte)[] peek()

Returns a temporary reference to the data that is currently buffered.

read
size_t read(ubyte[] dst, IOMode )
void read(ubyte[] dst)

Fills the preallocated array 'bytes' with data from the stream.

Meta