示例#1
0
            public static double ToValue(byte[] table, int index)
            {
                UnionDouble bt = new UnionDouble();

                bt.SetBytes(table, index);
                return(bt.value);
            }
示例#2
0
            public static byte[] ToBytes(double val)
            {
                UnionDouble bt = new UnionDouble();

                bt.value = val;
                return(bt.bytes);
            }
示例#3
0
 public static byte[] ToBytes(double val)
 {
     return(UnionDouble.ToBytes(val));
 }
示例#4
0
 public static int ToValue(out double ret, byte[] bytes, int index)
 {
     ret = UnionDouble.ToValue(bytes, index);
     return(UnionDouble.Size);
 }