public override void Read(PeReader rdr) { rdr.BaseStream.Position = 0; m = rdr.ReadUInt16(); hc = rdr.ReadBytes(0x3a); o = rdr.ReadUInt32(); ds = rdr.ReadBytes((int)(o - 0x40)); }
public void Load(PeReader rdr, uint adr) { rdr.SetPosition(adr); uint s = Location.Size; while (rdr.BaseStream.Position - adr < s) { CertificateEntry e = new CertificateEntry(); uint len = rdr.ReadUInt32(); e.Revision = (CertificateRevision)rdr.ReadUInt16(); e.CertificateType = (CertificateType)rdr.ReadUInt16(); e.CertificateData = rdr.ReadBytes((int)len - 8); items.Add(e); } }
internal void Read(PeReader rdr) { n = new string(rdr.ReadChars(8)).Trim('\0'); vSize = rdr.ReadUInt32(); vPtr = rdr.ReadUInt32(); uint rSize = rdr.ReadUInt32(); uint rPtr = rdr.ReadUInt32(); relocPtr = rdr.ReadUInt32(); lnPtr = rdr.ReadUInt32(); relocNo = rdr.ReadUInt16(); lnNo = rdr.ReadUInt16(); c = (SectionFlags)rdr.ReadUInt32(); rdr.SaveLocation(); rdr.SetPosition(rPtr); dat = rdr.ReadBytes((int)rSize); rdr.LoadLocation(); }