Example #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void read(pspsharp.state.StateInputStream stream) throws java.io.IOException
        public override void read(StateInputStream stream)
        {
            stream.readVersion(STATE_VERSION);
            maxVblankInterrupts = stream.readInt();
            baseTimeMicros      = Now - stream.readLong();
            base.read(stream);

            startVblankInterrupts();
        }
Example #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void read(pspsharp.state.StateInputStream stream) throws java.io.IOException
        public virtual void read(StateInputStream stream)
        {
            stream.readVersion(STATE_VERSION);
            long systemNanoTimeAtWrite = stream.readLong();

            // Do not take into account the elapsed time between write() & read()
            long delta = SystemNanoTime - systemNanoTimeAtWrite;

            baseNanos  += delta;
            pauseNanos += delta;
        }
Example #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void read(pspsharp.state.StateInputStream stream) throws java.io.IOException
        public override void read(StateInputStream stream)
        {
            stream.readVersion(STATE_VERSION);
            data            = stream.readInt();
            status          = stream.readInt();
            baudrateDivisor = stream.readLong();
            control         = stream.readInt();
            unknown04       = stream.readInt();
            unknown30       = stream.readInt();
            unknown34       = stream.readInt();
            unknown34       = stream.readInt();
            interrupt       = stream.readInt();
            base.read(stream);
        }
Example #4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void read(pspsharp.state.StateInputStream stream) throws java.io.IOException
        public override void read(StateInputStream stream)
        {
            stream.readVersion(STATE_VERSION);
            Alarm = (int)(stream.readLong() + SystemTime);
            base.read(stream);
        }
Example #5
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void read(pspsharp.state.StateInputStream stream) throws java.io.IOException
        public override void read(StateInputStream stream)
        {
            stream.readVersion(STATE_VERSION);
            hilo = stream.readLong();
            base.read(stream);
        }