예제 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void read(pspsharp.state.StateInputStream stream, FatVirtualFile fatVirtualFile) throws java.io.IOException
        public virtual void read(StateInputStream stream, FatVirtualFile fatVirtualFile)
        {
            parentDirectory = fatVirtualFile.readFatFileInfo(stream);

            // Read the children
            children = null;
            int countChildren = stream.readInt();

            for (int i = 0; i < countChildren; i++)
            {
                FatFileInfo child = fatVirtualFile.readFatFileInfo(stream);
                if (child != null)
                {
                    addChild(child);
                }
            }
        }
예제 #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void write(pspsharp.state.StateOutputStream stream, FatVirtualFile fatVirtualFile) throws java.io.IOException
        public virtual void write(StateOutputStream stream, FatVirtualFile fatVirtualFile)
        {
            fatVirtualFile.writeFatFileInfo(stream, parentDirectory);

            // Write the children
            if (children == null)
            {
                stream.writeInt(0);
            }
            else
            {
                stream.writeInt(children.Count);
                foreach (FatFileInfo child in children)
                {
                    fatVirtualFile.writeFatFileInfo(stream, child);
                }
            }
        }
예제 #3
0
 public FatBuilder(FatVirtualFile vFile, IVirtualFileSystem vfs, int maxNumberClusters)
 {
     this.vFile             = vFile;
     this.vfs               = vfs;
     this.maxNumberClusters = maxNumberClusters;
 }