コード例 #1
0
 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);
 }
コード例 #2
0
 public override void VisitImplMapRow(ImplMapRow row)
 {
     row.MappingFlags    = (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));
 }
コード例 #3
0
        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);
        }
コード例 #4
0
 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);
 }
コード例 #5
0
 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;
 }
コード例 #6
0
 public override void VisitImplMapRow(ImplMapRow row)
 {
     row.MappingFlags = (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));
 }