Ejemplo n.º 1
0
        void UpdateFromPEFile()
        {
            while (this.itemsCore.Count > this.peFile.SectionHeaders.Length)
            {
                var se = this.itemsCore[this.itemsCore.Count - 1];
                this.itemsCore.Remove(se);
            }

            while (this.itemsCore.Count < this.peFile.SectionHeaders.Length)
            {
                var se = new SectionHeaderModel(this.peFile.SectionHeaders[this.itemsCore.Count]);
                this.itemsCore.Add(se);
            }

            this.Length = (ulong)(this.Items.Count * SectionHeader.Size);
        }
Ejemplo n.º 2
0
        void UpdateFromPEFile()
        {
            while (this.itemsCore.Count > this.peFile.SectionHeaders.Length)
            {
                var se = this.itemsCore[this.itemsCore.Count - 1];
                this.itemsCore.Remove(se);
            }

            while (this.itemsCore.Count < this.peFile.SectionHeaders.Length)
            {
                var se = new SectionHeaderModel(this.peFile.SectionHeaders[this.itemsCore.Count]);
                this.itemsCore.Add(se);
            }

            this.Length = (ulong)(this.Items.Count * SectionHeader.Size);
        }