Esempio n. 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);
            dumpIoIoctl_0x02125803 = stream.readBytesWithLength();
            position = stream.readLong();
            bool vFilePresent = stream.readBoolean();

            if (vFilePresent)
            {
                openFile();
                vFile.read(stream);
            }

            base.read(stream);
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void read(pspsharp.state.StateInputStream stream) throws java.io.IOException
        public virtual void read(StateInputStream stream)
        {
            stream.readVersion(STATE_VERSION);
            deviceName = stream.readString();
            dirName    = stream.readString();
            fileName   = stream.readString();
            fileName83 = stream.readString();
            directory  = stream.readBoolean();
            readOnly   = stream.readBoolean();
            int time = stream.readInt();

            if (time == 0)
            {
                lastModified = null;
            }
            else
            {
                lastModified = ScePspDateTime.fromMSDOSTime(time);
            }
            fileSize = stream.readLong();
            clusters = stream.readIntsWithLength();
            fileData = stream.readBytesWithLength();
            closeVirtualFile();
        }