Esempio n. 1
0
 protected int readByte()
 {
     /*
      * removed at 1.7.0
      * if(simulated) {
      *      return simulatedInts[simulatedCount ++];
      * } else {
      */
     if (capturingInertialBG)
     {
         return((int)EncoderCaptureInertialBackgroundStatic.GetNext());
     }
     else
     {
         if (simulated)
         {
             return(simulateByte());
         }
         else
         {
             return(sp.ReadByte());
         }
     }
     //}
 }
Esempio n. 2
0
 protected int readByte()
 {
     if (simulated)
     {
         return(simulatedInts[simulatedCount++]);
     }
     else
     {
         if (capturingInertialBG)
         {
             return(EncoderCaptureInertialBackgroundStatic.GetNext());
         }
         else
         {
             return(sp.ReadByte());
         }
     }
 }