public static double ReadFixed32U(byte[] aBuff, int aOff) { long num = LittleEndianHelper.ReadIntU(aBuff, aOff); double num2 = (double)LittleEndianHelper.URShift(num, 16); num &= 0xFFFF; return(num2 + (double)num / 65536.0); }
public static double ReadFixed32(byte[] aBuff, int aOff) { int num = LittleEndianHelper.ReadInt(aBuff, aOff); bool flag = false; if (num < 0) { num *= -1; flag = true; } double num2 = (double)LittleEndianHelper.URShift(num, 16); num &= 0xFFFF; num2 += (double)num / 65536.0; if (flag) { num2 *= -1.0; } return(num2); }
public static long URShift(long number, long bits) { return(LittleEndianHelper.URShift(number, (int)bits)); }