printNoGC

Buils a message to a buffer similarly to writef/writefln, but without using GC.

C snprintf would be better, but it isn't pure. formattedWrite isn't completely @nogc yet (although it isn't GC-heavy).

The user has to ensure buffer is long enough - an assert checks that we don't run out of space. Currently this can only write strings and dchars.

@safe pure nothrow @nogc
char[]
printNoGC
(
S...
)
(
char[] buffer
,)

Meta