public static void GetBytes(byte[] bytes, int startIndex, double value)
        {
            ConverterHelperDouble ch = new ConverterHelperDouble {
                Adouble = value
            };

            WriteLittleEndian(bytes, startIndex, ch.Along);
        }
Exemplo n.º 2
0
        public static void Write(byte[] bytes, int startIndex, double value)
        {
            ConverterHelperDouble ch = new ConverterHelperDouble {
                Adouble = value
            };

            Write(bytes, startIndex, ch.Along);
        }
Exemplo n.º 3
0
        public static double ToDouble(byte[] buffer, int index)
        {
            ulong i = ReadLittleEndian(buffer, index, sizeof(double));
            ConverterHelperDouble ch = new ConverterHelperDouble {
                Along = i
            };

            return(ch.Adouble);
        }
Exemplo n.º 4
0
        public static double ToDouble(byte[] bytes, int startIndex)
        {
            var value = ReadUInt64LittleEndian(bytes, startIndex);
            ConverterHelperDouble ch = new ConverterHelperDouble {
                Along = value
            };

            return(ch.Adouble);
        }
Exemplo n.º 5
0
        public static void GetBytes(byte[] bytes, int startIndex, double value)
        {
            ConverterHelperDouble converterHelperDouble = default(ConverterHelperDouble);

            converterHelperDouble.Adouble = value;
            ConverterHelperDouble ch = converterHelperDouble;

            WriteLittleEndian(bytes, startIndex, ch.Along);
        }
Exemplo n.º 6
0
 public void Put(double value)
 {
     ConverterHelperDouble ch = new ConverterHelperDouble { i = value };
     Put(ch.o);
 }
Exemplo n.º 7
0
 public static void GetBytes(byte[] bytes, int startIndex, double value)
 {
     ConverterHelperDouble ch = new ConverterHelperDouble { Adouble = value };
     WriteLittleEndian(bytes, startIndex, ch.Along);
 }