Пример #1
0
        public static Span <byte> DoubleToBytes(ReadOnlySpan <char> input) => BitConverterHelper.GetBigEndianBytes(double.Parse(input
#if NETSTANDARD2_0
                                                                                                                                .ToString()
#endif
                                                                                                                                ));
Пример #2
0
        public static Span <byte> S64ToBytes(ReadOnlySpan <char> str) => BitConverterHelper.GetBigEndianBytes(long.Parse(str
#if NETSTANDARD2_0
                                                                                                                         .ToString()
#endif
                                                                                                                         ));