WriteCodedIndex() private method

private WriteCodedIndex ( CIx code, MetaDataElement elem ) : void
code CIx
elem MetaDataElement
return void
Example #1
0
 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);
 }
Example #2
0
 internal override void Write(PEWriter output)
 {
     output.WriteIndex(MDTable.GenericParam,parent.Row);
     output.WriteCodedIndex(CIx.TypeDefOrRef,constraint);
 }
Example #3
0
 internal override sealed void Write(PEWriter output)
 {
     output.WriteCodedIndex(CIx.HasFieldMarshal,field);
     output.BlobIndex(ntIx);
 }
Example #4
0
 internal override sealed void Write(PEWriter output)
 {
     output.WriteCodedIndex(CIx.MemberRefParent,parent);
     output.StringsIndex(nameIx);
     output.BlobIndex(sigIx);
 }
Example #5
0
 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);
 }
Example #6
0
 internal override sealed void Write(PEWriter output)
 {
     output.Write(flags);
     output.StringsIndex(nameIx);
     output.WriteCodedIndex(CIx.TypeDefOrRef,eventType);
 }
Example #7
0
 internal override void Write(PEWriter output)
 {
     output.WriteCodedIndex(CIx.ResolutionScope,scope);
     output.StringsIndex(nameIx);
     output.StringsIndex(nameSpaceIx);
 }
Example #8
0
 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);
 }
Example #9
0
 internal override sealed void Write(PEWriter output)
 {
     output.Write(flags);
     output.Write(0);
     output.StringsIndex(nameIx);
     output.StringsIndex(nameSpaceIx);
     output.WriteCodedIndex(CIx.Implementation,implementation);
 }
Example #10
0
 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);
 }
Example #11
0
 internal override sealed void Write(PEWriter output)
 {
     output.Write(cValue.GetTypeIndex());
     output.Write((byte)0);
     output.WriteCodedIndex(CIx.HasConstant,parent);
     output.BlobIndex(valIx);
 }
Example #12
0
 internal override void Write(PEWriter output)
 {
     output.WriteCodedIndex(CIx.MethodDefOrRef,methParent);
     output.BlobIndex(instIx);
 }
Example #13
0
 internal override sealed void Write(PEWriter output)
 {
     output.Write((ushort)type);
     output.WriteIndex(MDTable.Method,meth.Row);
     output.WriteCodedIndex(CIx.HasSemantics,eventOrProp);
 }
Example #14
0
 internal override sealed void Write(PEWriter output)
 {
     output.Write(flags);
     output.WriteCodedIndex(CIx.MemberForwarded,meth);
     output.StringsIndex(iNameIx);
     output.WriteIndex(MDTable.ModuleRef,importScope.Row);
 }
Example #15
0
 internal override sealed void Write(PEWriter output)
 {
     output.WriteCodedIndex(CIx.HasCustomAttr,parent);
     output.WriteCodedIndex(CIx.CustomAttributeType,type);
     output.BlobIndex(valIx);
 }
Example #16
0
 internal override sealed void Write(PEWriter output)
 {
     output.WriteIndex(MDTable.TypeDef,theClass.Row);
     output.WriteCodedIndex(CIx.TypeDefOrRef,theInterface);
 }
Example #17
0
 internal override sealed void Write(PEWriter output)
 {
     output.WriteIndex(MDTable.TypeDef,parent.Row);
     output.WriteCodedIndex(CIx.MethodDefOrRef,body);
     output.WriteCodedIndex(CIx.MethodDefOrRef,header);
 }