public override void VisitImplMapRow(ImplMapRow row)
 {
     m_binaryWriter.Write((ushort)row.MappingFlags);
     WriteMetadataToken(row.MemberForwarded, CodedIndex.MemberForwarded);
     WriteStringPointer(row.ImportName);
     WriteTablePointer(row.ImportScope, ModuleRefTable.RId);
 }
Beispiel #2
0
 public override void VisitImplMapRow(ImplMapRow row)
 {
     row.MappingFlags    = (CilStrip.Mono.Cecil.PInvokeAttributes)m_binaryReader.ReadUInt16();
     row.MemberForwarded = Utilities.GetMetadataToken(CodedIndex.MemberForwarded,
                                                      ReadByIndexSize(GetCodedIndexSize(CodedIndex.MemberForwarded)));
     row.ImportName  = ReadByIndexSize(m_stringsHeapIdxSz);
     row.ImportScope = ReadByIndexSize(GetIndexSize(ModuleRefTable.RId));
 }
        public ImplMapRow CreateImplMapRow(PInvokeAttributes _mappingFlags, MetadataToken _memberForwarded, uint _importName, uint _importScope)
        {
            ImplMapRow row = new ImplMapRow();

            row.MappingFlags    = _mappingFlags;
            row.MemberForwarded = _memberForwarded;
            row.ImportName      = _importName;
            row.ImportScope     = _importScope;
            return(row);
        }