}
}
+#if PROJECTN
+ [MethodImpl(MethodImplOptions.NoOptimization)]
+#else
[MethodImpl(MethodImplOptions.AggressiveInlining)] // called from only one location
+#endif
private static unsafe void Int32ToNumber(int value, ref NumberBuffer number)
{
number.precision = Int32Precision;
return buffer;
}
+#if PROJECTN
+ [MethodImpl(MethodImplOptions.NoOptimization)]
+#else
[MethodImpl(MethodImplOptions.AggressiveInlining)] // called from only one location
+#endif
private static unsafe void UInt32ToNumber(uint value, ref NumberBuffer number)
{
number.precision = UInt32Precision;
}
}
+#if PROJECTN
+ [MethodImpl(MethodImplOptions.NoOptimization)]
+#endif
private static unsafe void Int64ToNumber(long input, ref NumberBuffer number)
{
ulong value = (ulong)input;
return TryCopyTo(p, (int)(buffer + bufferLength - p), destination, out charsWritten);
}
+#if PROJECTN
+ [MethodImpl(MethodImplOptions.NoOptimization)]
+#endif
private static unsafe void UInt64ToNumber(ulong value, ref NumberBuffer number)
{
number.precision = UInt64Precision;