Пример #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));
     }
 }
Пример #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));
     }
 }
Пример #3
0
 public static int FloatToUnicode(float value, char[] chars, int offset, int precision)
 => CharConverter.DoubleToUnicode(value, chars, offset, precision);
Пример #4
0
 public static unsafe int FloatToUnicode(float value, char *chars, int length, int offset, int precision)
 => CharConverter.DoubleToUnicode(value, chars, length, offset, precision);
Пример #5
0
 public static int FloatToUnicode(float value, Span <char> chars, int precision)
 => CharConverter.DoubleToUnicode(value, chars, precision);