📄 implmap.cs
字号:
// ImplMap.cs
// Copyright (C) 2003 Mike Krueger
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
using System;
using System.IO;
namespace ICSharpCode.SharpAssembly.Metadata.Rows {
public class ImplMap : AbstractRow
{
public static readonly int TABLE_ID = 0x1C;
public static readonly ushort FLAG_NOMANGLE = 0x0001;
public static readonly ushort FLAG_CHARSETMASK = 0x0006;
public static readonly ushort FLAG_CHARSETNOTSPEC = 0x0000;
public static readonly ushort FLAG_CHARSETANSI = 0x0002;
public static readonly ushort FLAG_CHARSETUNICODE = 0x0004;
public static readonly ushort FLAG_CHARSETAUTO = 0x0006;
public static readonly ushort FLAG_SUPPORTSLASTERROR = 0x0040;
public static readonly ushort FLAG_CALLCONVMASK = 0x0700;
public static readonly ushort FLAG_CALLCONVWINAPI = 0x0100;
public static readonly ushort FLAG_CALLCONVCDECL = 0x0200;
public static readonly ushort FLAG_CALLCONVSTDCALL = 0x0300;
public static readonly ushort FLAG_CALLCONVTHISCALL = 0x0400;
public static readonly ushort FLAG_CALLCONVFASTCALL = 0x0500;
ushort mappingFlags;
uint memberForwarded; // index into the Field or Method table; more precisely, a MemberForwarded coded index.
uint importName; // index into the String heap
uint importScope; // index into the ModuleRef table
public ushort MappingFlags {
get {
return mappingFlags;
}
set {
mappingFlags = value;
}
}
public uint MemberForwarded {
get {
return memberForwarded;
}
set {
memberForwarded = value;
}
}
public uint ImportName {
get {
return importName;
}
set {
importName = value;
}
}
public uint ImportScope {
get {
return importScope;
}
set {
importScope = value;
}
}
public override void LoadRow()
{
mappingFlags = binaryReader.ReadUInt16();
memberForwarded = ReadCodedIndex(CodedIndex.MemberForwarded);
importName = LoadStringIndex();
importScope = ReadSimpleIndex(ModuleRef.TABLE_ID);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -