internal Section(PEReader input) { name = new char[8]; for (int i=0; i < name.Length; i++) name[i] = (char)input.ReadByte(); nameString = new String(name); tide = input.ReadUInt32(); rva = input.ReadUInt32(); size = input.ReadUInt32(); offset = input.ReadUInt32(); relocRVA = input.ReadUInt32(); lineRVA = input.ReadUInt32(); numRelocs = input.ReadUInt16(); numLineNums = input.ReadUInt16(); flags = input.ReadUInt32(); if (Diag.DiagOn) { Console.WriteLine(" " + nameString + " RVA = " + Hex.Int(rva) + " vSize = " + Hex.Int(tide)); Console.WriteLine(" FileOffset = " + Hex.Int(offset) + " aSize = " + Hex.Int(size)); } }
internal ConstantElem(PEReader buff) { byte constType = buff.ReadByte(); byte pad = buff.ReadByte(); parentIx = buff.GetCodedIndex(CIx.HasConstant); //valIx = buff.GetBlobIx(); cValue = buff.GetBlobConst(constType); sortTable = true; tabIx = MDTable.Constant; }