public static Action <IDatabase> GetDoubleBinaryAction(DoubleBit bits, byte quality, DateTime timestamp, ushort index) { return((IDatabase db) => { db.Update(new DoubleBitBinary(bits, quality, timestamp), index); }); }
public static Action<IDatabase> GetDoubleBinaryAction(DoubleBit bits, byte quality, DateTime timestamp, ushort index) { return (IDatabase db) => { db.Update(new DoubleBitBinary(bits, quality, timestamp), index); }; }
public static double DoubleToULongBit2(ulong value) { var bit = new DoubleBit { ULongValue = value }; return(bit.ULongValue); }
public static ulong DoubleToULongBit2(double value) { var bit = new DoubleBit { DoubleValue = value }; return(bit.ULongValue); }
public static long DoubleToInt64(double value) { var bit = new DoubleBit { DoubleValue = value }; return(bit.LongValue); }
public static double Int64ToDouble(long value) { var bit = new DoubleBit { LongValue = value }; return(bit.DoubleValue); }
public static byte FromDoubleBitValue(byte quality, DoubleBit state) { byte value = (byte)(((byte)(state)) << 6); return((byte)((DoubleQualityMask & quality) | value)); }