WriteCodedIndex() private method

private WriteCodedIndex ( CIx code, MetaDataElement elem ) : void
code CIx
elem MetaDataElement
return void
示例#1
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override void Write(PEWriter output)
 {
     output.Write(index);
     output.Write(flags);
     output.WriteCodedIndex(CIx.TypeOrMethodDef,parent);
     output.StringsIndex(nameIx);
     if (extraField) output.Write(kind);
 }
示例#2
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override void Write(PEWriter output)
 {
     output.WriteIndex(MDTable.GenericParam,parent.Row);
     output.WriteCodedIndex(CIx.TypeDefOrRef,constraint);
 }
示例#3
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     output.WriteCodedIndex(CIx.HasFieldMarshal,field);
     output.BlobIndex(ntIx);
 }
示例#4
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     output.WriteCodedIndex(CIx.MemberRefParent,parent);
     output.StringsIndex(nameIx);
     output.BlobIndex(sigIx);
 }
示例#5
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     output.Write((UInt16)action);   // or should this be 2 bytes??
     output.WriteCodedIndex(CIx.HasDeclSecurity,parent);
     output.BlobIndex(permissionIx);
 }
示例#6
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     output.Write(flags);
     output.StringsIndex(nameIx);
     output.WriteCodedIndex(CIx.TypeDefOrRef,eventType);
 }
示例#7
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override void Write(PEWriter output)
 {
     output.WriteCodedIndex(CIx.ResolutionScope,scope);
     output.StringsIndex(nameIx);
     output.StringsIndex(nameSpaceIx);
 }
示例#8
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     if (varArgParent != null)
         output.WriteCodedIndex(CIx.MemberRefParent,varArgParent);
     else
         output.WriteCodedIndex(CIx.MemberRefParent,parent);
     output.StringsIndex(nameIx);
     output.BlobIndex(sigIx);
 }
示例#9
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     output.Write(flags);
     output.Write(0);
     output.StringsIndex(nameIx);
     output.StringsIndex(nameSpaceIx);
     output.WriteCodedIndex(CIx.Implementation,implementation);
 }
示例#10
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     output.Write(flags);
     output.StringsIndex(nameIx);
     output.StringsIndex(nameSpaceIx);
     //if (superType != null)
     // Console.WriteLine("getting coded index for superType of " + name + " = " + superType.GetCodedIx(CIx.TypeDefOrRef));
     output.WriteCodedIndex(CIx.TypeDefOrRef,superType);
     output.WriteIndex(MDTable.Field,fieldIx);
     output.WriteIndex(MDTable.Method,methodIx);
 }
示例#11
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     output.Write(cValue.GetTypeIndex());
     output.Write((byte)0);
     output.WriteCodedIndex(CIx.HasConstant,parent);
     output.BlobIndex(valIx);
 }
示例#12
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override void Write(PEWriter output)
 {
     output.WriteCodedIndex(CIx.MethodDefOrRef,methParent);
     output.BlobIndex(instIx);
 }
示例#13
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     output.Write((ushort)type);
     output.WriteIndex(MDTable.Method,meth.Row);
     output.WriteCodedIndex(CIx.HasSemantics,eventOrProp);
 }
示例#14
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     output.Write(flags);
     output.WriteCodedIndex(CIx.MemberForwarded,meth);
     output.StringsIndex(iNameIx);
     output.WriteIndex(MDTable.ModuleRef,importScope.Row);
 }
示例#15
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     output.WriteCodedIndex(CIx.HasCustomAttr,parent);
     output.WriteCodedIndex(CIx.CustomAttributeType,type);
     output.BlobIndex(valIx);
 }
示例#16
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     output.WriteIndex(MDTable.TypeDef,theClass.Row);
     output.WriteCodedIndex(CIx.TypeDefOrRef,theInterface);
 }
示例#17
0
文件: PERWAPI.cs 项目: nomit007/f4
 internal override sealed void Write(PEWriter output)
 {
     output.WriteIndex(MDTable.TypeDef,parent.Row);
     output.WriteCodedIndex(CIx.MethodDefOrRef,body);
     output.WriteCodedIndex(CIx.MethodDefOrRef,header);
 }