LimitedInputStream

Wraps an existing stream, limiting the amount of data that can be read.

Constructors

this
this(InterfaceProxy!InputStream stream, ulong byte_limit, bool silent_limit, 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.
onSizeLimitReached
void onSizeLimitReached()
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

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.
sourceStream
inout(InterfaceProxy!InputStream) sourceStream [@property getter]

The stream that is wrapped by this one

Meta