vibe.d beta banner
get vibe.d
0.10.1

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

Module vibe.stream.operations

High level stream manipulation functions.

Functions

NameDescription
pipeRealtime(destination, source, nbytes, max_latency) Pipes a stream to another while keeping the latency within the specified threshold.
readAll(stream, max_bytes, reserve_bytes) Reads the complete contents of a stream, optionally limited by max_bytes.
readAllUTF8(stream, sanitize, max_bytes) Reads the complete contents of a stream, assuming UTF-8 encoding.
readLine(stream, max_bytes, linesep) Reads and returns a single line from the stream.
readUntil(stream, end_marker, max_bytes, alloc) Reads all data of a stream until the specified end marker is detected.
skipBytes(stream, bytes) Consumes bytes.length bytes of the stream and determines if the contents match up.
Authors

Sönke Ludwig

Copyright

© 2012-2016 Sönke Ludwig

License

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