Function readAll

Reads the complete contents of a stream, optionally limited by max_bytes.

Prototype

ubyte[] readAll(
  InputStream stream,
  ulong max_bytes
);

Throws

An exception is thrown if max_bytes != 0 and the stream contains more than max_bytes data.

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.