vibe.d beta banner
get vibe.d
0.7.30

Function LimitedInputStream.this

Constructs a limited stream from an existing input stream.

Prototype

this(
  InputStream stream,
  ulong byte_limit,
  bool silent_limit = false
);

Parameters

NameDescription

stream

the input stream to be wrapped

byte limit

the maximum number of bytes readable from the constructed stream

silent limit

if set, the stream will behave exactly like the original stream, but will throw an exception as soon as the limit is reached.

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.