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