vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function readAll

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

ubyte[] readAll(InputStream) (
  InputStream stream,
  size_t max_bytes = size_t.max,
  size_t reserve_bytes = 0
)
if (isInputStream!InputStream);

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.