streams.interfaces

Object-oriented interfaces and classes for dealing with streams. The symbols defined in this module are only available when not in "BetterC" mode, as they require the use of the Garbage Collector.

Members

Classes

InputStreamObject
class InputStreamObject(S, E = StreamType!S)

Input stream implementation that wraps around a primitive input stream.

OutputStreamObject
class OutputStreamObject(S, E = StreamType!S)

Output stream implementation that wraps around a primitive output stream.

Functions

inputStreamObjectFor
InputStreamObject!(S, E) inputStreamObjectFor(S stream)

Gets a new object-oriented input stream implementation that wraps the given input stream.

outputStreamObjectFor
OutputStreamObject!(S, E) outputStreamObjectFor(S stream)

Gets a new object-oriented output stream implementation that wraps the given output stream.

Interfaces

ClosableStream
interface ClosableStream

Interface defining a stream that is closable.

FlushableStream
interface FlushableStream

Interface defining a stream that is flushable.

InputStream
interface InputStream(E)

Interface defining an input stream object that reads elements from some resource.

OutputStream
interface OutputStream(E)

Interface defining an output stream object that writes elements to some resource.

Meta