Esempio n. 1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="context">the current context</param>
 internal Header(StructuredStorageContext context)
 {
     this._ioHandler = new OutputHandler(new MemoryStream());
     this._ioHandler.SetHeaderReference(this);
     this._ioHandler.InitBitConverter(true);
     this._context = context;
     setHeaderDefaults();
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context">the current context</param>
 internal Fat(StructuredStorageContext context)
     : base(context)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor
 /// <param name="context">the current context</param>
 /// </summary>
 protected AbstractFat(StructuredStorageContext context)
 {
     this._context = context;
 }
Esempio n. 4
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="name">The name of the directory entry.</param>
 /// <param name="context">The current context.</param>
 internal StorageDirectoryEntry(string name, StructuredStorageContext context)
     : base(name, context)
 {
     this.Type = DirectoryEntryType.STGTY_STORAGE;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public StructuredStorageWriter()
 {
     this._context = new StructuredStorageContext();
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="name">Name of the directory entry.</param>
 /// <param name="context">the current context</param>
 internal BaseDirectoryEntry(string name, StructuredStorageContext context)
 {
     this._context = context;
     this.Name     = name;
     setInitialValues();
 }
Esempio n. 7
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="name">Name of the stream directory entry.</param>
 /// <param name="stream">The stream referenced by the stream directory entry.</param>
 /// <param name="context">The current context.</param>
 internal StreamDirectoryEntry(string name, Stream stream, StructuredStorageContext context)
     : base(name, context)
 {
     this._stream = stream;
     this.Type    = DirectoryEntryType.STGTY_STREAM;
 }
Esempio n. 8
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="context">the current context</param>
 internal RootDirectoryEntry(StructuredStorageContext context)
     : base("Root Entry", context)
 {
     this.Type = DirectoryEntryType.STGTY_ROOT;
     this.Sid  = 0x0;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context">the current context</param>
 internal EmptyDirectoryEntry(StructuredStorageContext context)
     : base("", context)
 {
     this.Color = DirectoryEntryColor.DE_RED; // 0x0
     this.Type  = DirectoryEntryType.STGTY_INVALID;
 }