public static DataUnion operator &(DataUnion left, DataUnion right) { DataUnion data = new DataUnion(); data.UL0 = left.UL0 & right.UL0; return(data); }
public static DataUnion operator ~(DataUnion left) { DataUnion data = new DataUnion(); data.UL0 = ~left.UL0; return(data); }
public static double ToBigEndian(this double data) { lock (locker) { DataUnion p = new DataUnion(); p.D0 = data; dataUnion.B0 = p.B7; dataUnion.B1 = p.B6; dataUnion.B2 = p.B5; dataUnion.B3 = p.B4; dataUnion.B4 = p.B3; dataUnion.B5 = p.B2; dataUnion.B6 = p.B1; dataUnion.B7 = p.B0; } return(dataUnion.D0); }