tango.io.stream.Typed

License:

BSD style: see license.txt

Version:

Initial release: Nov 2007

Author:

Kris

Streams to expose simple native types as discrete elements. I/O is buffered and should yield fair performance.

class TypedInput(T) : InputFilter #
Type T is the target or destination type
this(InputStream stream) #
TypedInput flush() [override, final] #
Override this to give back a useful chaining reference
bool read(ref T x) [final] #
Read a value from the stream. Returns false when all content has been consumed
int opApply(int delegate(ref T x) dg) [final] #
Iterate over all content
class TypedOutput(T) : OutputFilter #
Type T is the target or destination type.
this(OutputStream stream) #
void write(ref T x) [final] #
Append a value to the output stream