GetFileSize() 공개 메소드

public GetFileSize ( uint directoryBlock, uint index ) : uint
directoryBlock uint
index uint
리턴 uint
예제 #1
0
		public FATFileStream (FAT fs, uint startCluster, uint directorySector, uint directoryIndex)
		{
			this.fs = fs;
			this.clusterSize = fs.ClusterSizeInBytes;
			this.data = new byte[clusterSize];
			this.startCluster = startCluster;
			this.directorySector = directorySector;
			this.directoryIndex = directoryIndex;
			this.read = true;
			this.write = false;
			this.position = -1;
			this.dirty = false;
			
			this.nthCluster = UInt32.MaxValue; // Not positioned yet 

			this.lengthOnDisk = fs.GetFileSize (directorySector, directoryIndex);
			this.length = this.lengthOnDisk;

			if (length != 0)
				ReadCluster (startCluster);
		}
예제 #2
0
        public FATFileStream(FAT fs, uint startCluster, uint directorySector, uint directoryIndex)
        {
            this.fs              = fs;
            this.clusterSize     = fs.ClusterSizeInBytes;
            this.data            = new byte[clusterSize];
            this.startCluster    = startCluster;
            this.directorySector = directorySector;
            this.directoryIndex  = directoryIndex;
            this.read            = true;
            this.write           = false;
            this.position        = -1;
            this.dirty           = false;

            this.nthCluster = UInt32.MaxValue;             // Not positioned yet

            this.lengthOnDisk = fs.GetFileSize(directorySector, directoryIndex);
            this.length       = this.lengthOnDisk;

            if (length != 0)
            {
                ReadCluster(startCluster);
            }
        }