本文整理汇总了C#中PEReader.GetCodedIndex方法的典型用法代码示例。如果您正苦于以下问题:C# PEReader.GetCodedIndex方法的具体用法?C# PEReader.GetCodedIndex怎么用?C# PEReader.GetCodedIndex使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PEReader
的用法示例。
在下文中一共展示了PEReader.GetCodedIndex方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadMember
internal static void ReadMember(PEReader buff, TableRow[] members)
{
Contract.Requires(buff != null);
Contract.Requires(members != null);
for (int i = 0; i < members.Length; i++)
{
uint parenIx = buff.GetCodedIndex(CIx.MemberRefParent);
string memName = buff.GetString();
uint sigIx = buff.GetBlobIx();
if (buff.FirstBlobByte(sigIx) == Field.FieldTag) // got a field
members[i] = new FieldRef(parenIx, memName, sigIx);
else
members[i] = new MethodRef(parenIx, memName, sigIx);
}
}
示例2: MethodSemantics
internal MethodSemantics(PEReader buff)
{
Contract.Requires(buff != null);
type = (MethodType)buff.ReadUInt16();
methIx = buff.GetIndex(MDTable.Method);
assocIx = buff.GetCodedIndex(CIx.HasSemantics);
tabIx = MDTable.MethodSemantics;
}
示例3: ConstantElem
internal ConstantElem(PEReader buff)
{
Contract.Requires(buff != null);
byte constType = buff.ReadByte();
byte pad = buff.ReadByte();
parentIx = buff.GetCodedIndex(CIx.HasConstant);
//valIx = buff.GetBlobIx();
cValue = buff.GetBlobConst(constType);
tabIx = MDTable.Constant;
}
示例4: MethodImpl
internal MethodImpl(PEReader buff)
{
Contract.Requires(buff != null);
classIx = buff.GetIndex(MDTable.TypeDef);
methBodyIx = buff.GetCodedIndex(CIx.MethodDefOrRef);
methDeclIx = buff.GetCodedIndex(CIx.MethodDefOrRef);
tabIx = MDTable.MethodImpl;
}