@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.
Number of bytes the encoded character takes up in buf.
See Implementation
@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.