encodeValidCharNoGC

@nogc version of std.utf.encode() for char[], but assumes c is a valid UTF-32 char.

The caller must handle ASCII (< 0x80) characters manually; this is asserted to force code using this function to be efficient.

alias encodeValidCharNoGC = encodeCharNoGC!(Yes.validated)

Return Value

Number of bytes the encoded character takes up in buf.

Meta