AnsiTextLite.toSink

Outputs in order: The start sequence (.toFullStartSequence), the output text (.text), and the end sequence (.toFullEndSequence) into the given sink.

This function by itself does not allocate memory.

This function will infer attributes, so as to be used in whatever attribute-souped environment your sink supports.

Please read the warnings described in .toRange TLDR; don't persist the slices given to the sink under any circumstance. You must copy the data as soon as you get it.

struct AnsiTextLite
const
void
toSink
(
Sink
)
(
scope ref Sink sink
)

Parameters

sink Sink

The sink to output into.

Meta