本文整理汇总了C#中CIx类的典型用法代码示例。如果您正苦于以下问题:C# CIx类的具体用法?C# CIx怎么用?C# CIx使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CIx类属于命名空间,在下文中一共展示了CIx类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetCodedIx
internal sealed override uint GetCodedIx(CIx code)
{
switch (code) {
case (CIx.HasCustomAttr) : return 14;
case (CIx.HasDeclSecurity) : return 2;
}
return 0;
}
示例2: GetCodedIx
internal override sealed uint GetCodedIx(CIx code)
{
switch (code) {
case (CIx.HasCustomAttr) : return 4;
case (CIx.HasConstant) : return 1;
case (CIx.HasFieldMarshal) : return 1;
}
return 0;
}
示例3: CodedIndexSize
internal uint CodedIndexSize(CIx code)
{
if (lgeCIx[(uint)code]) return 4;
return 2;
}
示例4: GetCodedIndex
internal uint GetCodedIndex(CIx codedIx)
{
if (md.lgeCIx[(int)codedIx]) return ReadUInt32();
return ReadUInt16();
}
示例5: MakeCodedIndex
internal uint MakeCodedIndex(CIx code, MDTable tab, uint ix)
{
ix <<= MetaData.CIxShiftMap[(uint)code];
ix &= (uint)tab;
return ix;
}
示例6: GetCodedElement
internal MetaDataElement GetCodedElement(CIx code, uint ix)
{
uint mask = (uint)MetaData.CIxBitMasks[MetaData.CIxShiftMap[(uint)code]];
int tabIx = MetaData.CIxTables[(int)code][(ix & mask)];
ix >>= MetaData.CIxShiftMap[(uint)code];
if (ix == 0) return null;
MetaDataElement elem = (MetaDataElement)tables[tabIx][(int)ix-1];
if ((elem != null) && (elem.unresolved)) {
elem.Resolve(this);
elem = (MetaDataElement)tables[tabIx][(int)ix-1];
}
return elem;
}
示例7: CodedTable
internal MDTable CodedTable(CIx code, uint ix)
{
uint mask = (uint)MetaData.CIxBitMasks[MetaData.CIxShiftMap[(uint)code]];
return (MDTable)MetaData.CIxTables[(int)code][(ix & mask)];
}
示例8: CodedIndex
internal uint CodedIndex(CIx code, uint ix)
{
ix >>= MetaData.CIxShiftMap[(uint)code];
return ix;
}
示例9: WriteCodedIndex
internal void WriteCodedIndex(CIx code, MetaDataElement elem) {
metaData.WriteCodedIndex(code,elem,this);
}
示例10: WriteCodedIndex
internal void WriteCodedIndex(CIx code, MetaDataElement elem, FileImage output)
{
uint ix = 0;
if (elem != null) {
ix = (elem.Row << CIxShiftMap[(uint)code]) | elem.GetCodedIx(code);
// Console.WriteLine("coded index = " + ix + " row = " + elem.Row);
//} else {
// Console.WriteLine("elem for coded index is null");
}
if (lgeCIx[(uint)code])
output.Write(ix);
else
output.Write((ushort)ix);
}
示例11: WriteCodedIndex
internal void WriteCodedIndex(CIx code, MetaDataElement elem)
{
Contract.Requires(elem != null);
metaData.WriteCodedIndex(code, elem, this);
}