Converts a sequence of Java characters to a sequence of unicode code points.
the number of code points written to the destination buffer