vibe.d beta banner
get vibe.d
0.8.0

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

Module vibe.core.stream

Generic stream interface used by several stream-like classes.

This module defines the basic stream primitives. For concrete stream types, take a look at the vibe.stream package. The vibe.stream.operations module contains additional high-level operations on streams, such as reading streams by line or as a whole.

Functions

NameDescription
nullSink()Returns a NullOutputStream instance.
pipe(source, sink, nbytes)Pipes an InputStream directly into this OutputStream.

Interfaces

NameDescription
ConnectionStreamInterface for streams based on a connection.
InputStreamInterface for all classes implementing readable streams.
OutputStreamInterface for all classes implementing writeable streams.
RandomAccessStreamInterface for all streams supporting random access.
StreamInterface for all classes implementing readable and writable streams.

Classes

NameDescription
NullOutputStreamStream implementation acting as a sink with no function.

Enums

NameDescription
IOModeControls the waiting behavior of read/write operations.

Templates

NameDescription
validateConnectionStream
validateInputStream
validateOutputStream
validateRandomAccessStream
validateStream

Manifest constants

NameTypeDescription
isConnectionStream
isInputStream
isOutputStream
isRandomAccessStream
isStream

Aliases

NameTypeDescription
ConnectionStreamProxyConnectionStream
InputStreamProxyInputStream
OutputStreamProxyOutputStream
RandomAccessStreamProxyRandomAccessStream
StreamProxyStream
Authors

Sönke Ludwig

Copyright

© 2012-2015 RejectedSoftware e.K.

License

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