Type T is the target or destination type.
Examples:
Array output;
auto inp = new TypedInput!(char)(new Array("hello world".dup));
auto oot = new TypedOutput!(char)(output = new Array(20));
foreach (x; inp)
oot.write (x);
assert (output.slice() == "hello world");
auto xx = new TypedInput!(char)(new UtfInput!(char, dchar)(new Array("hello world"d.dup)));
char[] yy;
foreach (x; xx)
yy ~= x;
assert (yy == "hello world");
- this(OutputStream stream);
- void write(ref T x);
- Append a value to the output stream.