OutBuffer.writef

Formats and writes its arguments in text format to the OutBuffer.

class OutBuffer
void
writef
(
Char
A...
)
(
scope const(Char)[] fmt
,)

Parameters

fmt const(Char)[]

format string as described in std.format.formattedWrite

args A

arguments to be formatted

Examples

OutBuffer b = new OutBuffer();
b.writef("a%sb", 16);
assert(b.toString() == "a16b");

See Also

Suggestion Box / Bug Report