예제 #1
0
        protected void Given_Section(string name, SectionHeaderType type, uint flags, byte[] blob)
        {
            var os = new ObjectSection
            {
                Name    = name,
                Type    = type,
                Flags   = flags,
                Content = blob,
            };

            objectSections.Add(os);
        }
예제 #2
0
 public void Read(Stream stream)
 {
     SH_NAME      = stream.ReadUInt32();
     SH_TYPE      = stream.ReadWord <SectionHeaderType>(SectionHeaderType.SHT_NULL);
     SH_FLAGS     = stream.ReadXWord();
     SH_ADDR      = stream.ReadAddress64();
     SH_OFFSET    = stream.ReadOffset64();
     SH_SIZE      = stream.ReadXWord();
     SH_LINK      = stream.ReadUInt32();
     SH_INFO      = stream.ReadUInt32();
     SH_ADDRALIGN = stream.ReadXWord();
     SH_ENTSIZE   = stream.ReadXWord();
 }