void text(IStr str)
It handles both D strings and C strings, so you can also pass null-terminated buffers directly.