コード例 #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="stream">The input stream.</param>
 /// <param name="fat">The fat which is used by this stream.</param>
 /// <param name="sectorSize">The sector size.</param>
 /// <param name="outputHander"></param>
 internal VirtualStream(Stream stream, AbstractFat fat, ushort sectorSize, OutputHandler outputHander)
 {
     this._stream       = stream;
     this._fat          = fat;
     this._sectorSize   = sectorSize;
     this._outputHander = outputHander;
     this._sectorCount  = (uint)Math.Ceiling((double)this._stream.Length / (double)this._sectorSize);
 }
コード例 #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 internal StructuredStorageContext()
 {
     this._tempOutputStream     = new OutputHandler(new MemoryStream());
     this._directoryStream      = new OutputHandler(new MemoryStream());
     this._header               = new Header(this);
     this._internalBitConverter = new InternalBitConverter(true);
     this._fat                = new Fat(this);
     this._miniFat            = new MiniFat(this);
     this._rootDirectoryEntry = new RootDirectoryEntry(this);
 }