Esempio n. 1
0
 public static unsafe int DoubleToUnicode(double value, char[] chars, int offset, int precision)
 {
     fixed(char *charptr = chars)
     {
         return(CharConverter.DoubleToUnicode(value, charptr, chars.Length, offset, precision));
     }
 }
Esempio n. 2
0
 public unsafe static int DoubleToUnicode(double value, Span <char> chars, int precision)
 {
     fixed(char *ptr = chars)
     {
         return(CharConverter.DoubleToUnicode(value, ptr, chars.Length, 0, precision));
     }
 }
Esempio n. 3
0
 public static int FloatToUnicode(float value, char[] chars, int offset, int precision)
 => CharConverter.DoubleToUnicode(value, chars, offset, precision);
Esempio n. 4
0
 public static unsafe int FloatToUnicode(float value, char *chars, int length, int offset, int precision)
 => CharConverter.DoubleToUnicode(value, chars, length, offset, precision);
Esempio n. 5
0
 public static int FloatToUnicode(float value, Span <char> chars, int precision)
 => CharConverter.DoubleToUnicode(value, chars, precision);