예제 #1
0
		public StorageStreamTreeNode(HexDocument doc, StreamHeader sh, int streamNumber, DotNetStream knownStream, IMetaData md)
			: base((ulong)sh.StartOffset, (ulong)sh.EndOffset - 1) {
			this.streamNumber = streamNumber;
			this.storageStreamType = GetStorageStreamType(knownStream);
			this.storageStreamVM = new StorageStreamVM(this, doc, StartOffset, (int)(EndOffset - StartOffset + 1 - 8));

			var tblStream = knownStream as TablesStream;
			if (tblStream != null)
				this.Children.Add(new TablesStreamTreeNode(doc, tblStream, md));
		}
예제 #2
0
        public StorageStreamTreeNode(HexDocument doc, StreamHeader sh, int streamNumber, DotNetStream knownStream, IMetaData md)
            : base((ulong)sh.StartOffset, (ulong)sh.EndOffset - 1)
        {
            this.streamNumber      = streamNumber;
            this.storageStreamType = GetStorageStreamType(knownStream);
            this.storageStreamVM   = new StorageStreamVM(this, doc, StartOffset, (int)(EndOffset - StartOffset + 1 - 8));

            var tblStream = knownStream as TablesStream;

            if (tblStream != null)
            {
                this.Children.Add(new TablesStreamTreeNode(doc, tblStream, md));
            }
        }