UtfOutput

Streaming UTF converter. Type T is the target or destination type, while S is the source type. Both types are either char/wchar/dchar.

Note that the arguments are reversed from those of UtfInput.

Constructors

this
this(OutputStream stream)

Create a buffered utf output converter.

Members

Functions

consume
size_t consume(const(S)[] dst)

Consume input of type T, and return the number of array elements consumed.

write
size_t write(const(void)[] src)

Write to the output stream from a source array. The provided src content is converted as necessary. Note that an attached output buffer must be at least four bytes wide to accommodate a conversion.

Inherited Members

From OutputFilter

sink
OutputStream sink;
Undocumented in source.
conduit
IConduit conduit [@property getter]

Return the hosting conduit.

write
size_t write(const(void)[] src)

Write to conduit from a source array. The provided src content will be written to the conduit.

copy
OutputStream copy(InputStream src, size_t max)

Transfer the content of another conduit to this one. Returns a reference to this class, or throws IOException on failure.

flush
IOStream flush()

Emit/purge buffered content.

seek
long seek(long offset, Anchor anchor)

Seek on this stream. Target conduits that don't support seeking will throw an IOException.

output
OutputStream output [@property getter]

Return the upstream host of this filter.

close
void close()

Close the output.

Meta