protected BaseFatStream(Base fileOrDirectory, FatFileSystem fileSystem, ulong firstClusterNumber) { mFileOrDirectory = fileOrDirectory; mFirstClusterNumber = firstClusterNumber; mFileSystem = fileSystem; mSize = mFileOrDirectory.Size; if (mSize > 0) { mFatTable = mFileSystem.GetFatTable(firstClusterNumber); } }
public FatDirectoryStream(Listing.FatDirectory aDirectory) { mDirectory = aDirectory; mFS = mDirectory.FileSystem; if (mFS == null) { FatHelpers.Debug("mFS is null!"); } if (mDirectory.Size > 0) { mFatTable = mFS.GetFatTable(mDirectory.FirstClusterNum); } }