MuContext.text

void text(IStr str) @trusted

It handles both D strings and C strings, so you can also pass null-terminated buffers directly.