Пример #1
0
        internal void Write(PeWriter wtr)
        {
            wtr.SetPosition(0);
            if (t == PeFileType.Image)
            {
                dos.Write(wtr);

                wtr.SetPosition(dos.PEHeaderOffset);

                wtr.Write(sign);

                pe.Write(wtr);

                op.Write(wtr);

                sects.Write(wtr);

                certs.Save(wtr, op.DataDirectories[DataDirectoryType.Certificate].Address.Value);
            }
            else if (t == PeFileType.Object)
            {
                pe.Write(wtr);

                sects.Write(wtr);
            }
        }
Пример #2
0
 public abstract void Write(PeWriter wtr);