vibe.d beta banner
get vibe.d
0.7.30

Function readAll

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

Prototype

ubyte[] readAll(
  InputStream stream,
  ulong max_bytes = 18446744073709551615LU,
  ulong reserve_bytes = 0LU
);

Throws

An exception is thrown if the stream contains more than max_bytes data.

Authors

Sönke Ludwig

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.