return sb.TryCopyTo(destination, out charsWritten);
}
-#if PROJECTN
- [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoOptimization)]
-#endif
private static unsafe void DecimalToNumber(decimal value, ref NumberBuffer number)
{
decimal d = value;
}
}
-#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;