UTF8toUTF32

fun UTF8toUTF32(utf8: BytesRef, ints: IntArray): Int

This method assumes valid UTF8 input. This method does not perform full UTF8 validation, it will check only the first byte of each codepoint (for multi-byte sequences any bytes after the head are skipped). It is the responsibility of the caller to make sure that the destination array is large enough.

Throws

If invalid codepoint header byte occurs or the content is prematurely truncated.