MappingOutputStream

An output stream that applies a function to each element that's written to it before writing to the underlying stream.

struct MappingOutputStream (
S
) if (
isSomeOutputStream!S &&
isSomeMappingFunction!(typeof(f))
&&
is(MappingFunctionReturnType!(typeof(f)) == StreamType!S)
) {}

Constructors

this
this(S stream)
Undocumented in source.

Members

Aliases

Ein
alias Ein = MappingFunctionInputType!(typeof(f))
Undocumented in source.
Eout
alias Eout = StreamType!S
Undocumented in source.

Functions

writeToStream
StreamResult writeToStream(Ein[] buffer)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta