public StorageStreamNode(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.newChild = new TablesStreamNode(doc, tblStream, md);
		}
		public StorageStreamNode(HexBuffer buffer, StreamHeader sh, int streamNumber, DotNetStream knownStream, IMetaData md)
			: base(HexSpan.FromBounds((ulong)sh.StartOffset, (ulong)sh.EndOffset)) {
			StreamNumber = streamNumber;
			StorageStreamType = GetStorageStreamType(knownStream);
			storageStreamVM = new StorageStreamVM(this, buffer, Span.Start, (int)(Span.Length - 8).ToUInt64());

			var tblStream = knownStream as TablesStream;
			if (tblStream != null)
				newChild = new TablesStreamNode(buffer, tblStream, md);
		}
Exemple #3
0
        public StorageStreamNode(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.newChild = new TablesStreamNode(doc, tblStream, md);
            }
        }
Exemple #4
0
        public StorageStreamNode(HexBuffer buffer, StreamHeader sh, int streamNumber, DotNetStream knownStream, IMetaData md)
            : base(HexSpan.FromBounds((ulong)sh.StartOffset, (ulong)sh.EndOffset))
        {
            StreamNumber      = streamNumber;
            StorageStreamType = GetStorageStreamType(knownStream);
            storageStreamVM   = new StorageStreamVM(this, buffer, Span.Start, (int)(Span.Length - 8).ToUInt64());

            var tblStream = knownStream as TablesStream;

            if (tblStream != null)
            {
                newChild = new TablesStreamNode(buffer, tblStream, md);
            }
        }
 public StorageStreamNode(StorageStreamVM storageStream)
     : base(storageStream.Span) => storageStreamVM = storageStream;
Exemple #6
0
 public TablesStorageStreamNode(StorageStreamVM storageStream, TablesStreamVM tablesStream)
     : base(storageStream)
 {
     this.tablesStream = tablesStream;
 }