当前位置: 首页>>代码示例>>C#>>正文


C# CLIFile.ReadInt32方法代码示例

本文整理汇总了C#中CLIFile.ReadInt32方法的典型用法代码示例。如果您正苦于以下问题:C# CLIFile.ReadInt32方法的具体用法?C# CLIFile.ReadInt32怎么用?C# CLIFile.ReadInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CLIFile的用法示例。


在下文中一共展示了CLIFile.ReadInt32方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LoadData

		private void LoadData(CLIFile pFile)
		{
			int typeDefIndex = 0;
			if (pFile.TypeDefTable.Length >= 0xFFFF) typeDefIndex = pFile.ReadInt32() - 1;
			else typeDefIndex = pFile.ReadUInt16() - 1;
			if (typeDefIndex >= 0) Parent = pFile.TypeDefTable[typeDefIndex];
			if (pFile.PropertyTable.Length >= 0xFFFF) PropertyListIndex = pFile.ReadInt32() - 1;
			else PropertyListIndex = pFile.ReadUInt16() - 1;
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:9,代码来源:PropertyMapData.cs

示例2: LoadData

		private void LoadData(CLIFile pFile)
		{
			Flags = (TypeAttributes)pFile.ReadUInt32();
			TypeName = pFile.ReadStringHeap(pFile.ReadHeapIndex(HeapOffsetSizes.Strings32Bit));
			TypeNamespace = pFile.ReadStringHeap(pFile.ReadHeapIndex(HeapOffsetSizes.Strings32Bit));
			Extends.LoadData(pFile);
			if (pFile.FieldTable.Length >= 0xFFFF) FieldListIndex = pFile.ReadInt32() - 1;
			else FieldListIndex = pFile.ReadUInt16() - 1;
			if (pFile.MethodDefTable.Length >= 0xFFFF) MethodListIndex = pFile.ReadInt32() - 1;
			else MethodListIndex = pFile.ReadUInt16() - 1;
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:11,代码来源:TypeDefData.cs

示例3: LoadData

		private void LoadData(CLIFile pFile)
		{
			int typeDefIndex = 0;
			if (pFile.TypeDefTable.Length >= 0xFFFF) typeDefIndex = pFile.ReadInt32() - 1;
			else typeDefIndex = pFile.ReadUInt16() - 1;
			if (typeDefIndex >= 0) NestedClass = pFile.TypeDefTable[typeDefIndex];
			typeDefIndex = 0;
			if (pFile.TypeDefTable.Length >= 0xFFFF) typeDefIndex = pFile.ReadInt32() - 1;
			else typeDefIndex = pFile.ReadUInt16() - 1;
			if (typeDefIndex >= 0) EnclosingClass = pFile.TypeDefTable[typeDefIndex];
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:11,代码来源:NestedClassData.cs

示例4: LoadData

		private void LoadData(CLIFile pFile)
		{
			Offset = pFile.ReadUInt32();
			int fieldIndex = 0;
			if (pFile.FieldTable.Length >= 0xFFFF) fieldIndex = pFile.ReadInt32() - 1;
			else fieldIndex = pFile.ReadUInt16() - 1;
			if (fieldIndex >= 0) Field = pFile.FieldTable[fieldIndex];
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:8,代码来源:FieldLayoutData.cs

示例5: LoadData

		private void LoadData(CLIFile pFile)
		{
			int typeDefIndex = 0;
			if (pFile.TypeDefTable.Length >= 0xFFFF) typeDefIndex = pFile.ReadInt32() - 1;
			else typeDefIndex = pFile.ReadUInt16() - 1;
			if (typeDefIndex >= 0) Class = pFile.TypeDefTable[typeDefIndex];
			Interface.LoadData(pFile);
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:8,代码来源:InterfaceImplData.cs

示例6: LoadData

 private void LoadData(CLIFile pFile)
 {
     int genericParamIndex = 0;
     if (pFile.GenericParamTable.Length >= 0xFFFF) genericParamIndex = pFile.ReadInt32() - 1;
     else genericParamIndex = pFile.ReadUInt16() - 1;
     if (genericParamIndex >= 0) Owner = pFile.GenericParamTable[genericParamIndex];
     Constraint.LoadData(pFile);
 }
开发者ID:Astaelan,项目名称:Fusion,代码行数:8,代码来源:GenericParamConstraintData.cs

示例7: LoadData

 private void LoadData(CLIFile pFile)
 {
     Processor = pFile.ReadUInt32();
     int assemblyRefIndex = 0;
     if (pFile.AssemblyRefTable.Length >= 0xFFFF) assemblyRefIndex = pFile.ReadInt32() - 1;
     else assemblyRefIndex = pFile.ReadUInt16() - 1;
     if (assemblyRefIndex >= 0) AssemblyRef = pFile.AssemblyRefTable[assemblyRefIndex];
 }
开发者ID:Astaelan,项目名称:Fusion,代码行数:8,代码来源:AssemblyRefProcessorData.cs

示例8: LoadData

 private void LoadData(CLIFile pFile)
 {
     int typeDefIndex = 0;
     if (pFile.TypeDefTable.Length >= 0xFFFF) typeDefIndex = pFile.ReadInt32() - 1;
     else typeDefIndex = pFile.ReadUInt16() - 1;
     if (typeDefIndex >= 0) Class = pFile.TypeDefTable[typeDefIndex];
     MethodBody.LoadData(pFile);
     MethodDeclaration.LoadData(pFile);
 }
开发者ID:Astaelan,项目名称:Fusion,代码行数:9,代码来源:MethodImplData.cs

示例9: LoadData

		private void LoadData(CLIFile pFile)
		{
			PackingSize = pFile.ReadUInt16();
			ClassSize = pFile.ReadUInt32();
			int typeDefIndex = 0;
			if (pFile.TypeDefTable.Length >= 0xFFFF) typeDefIndex = pFile.ReadInt32() - 1;
			else typeDefIndex = pFile.ReadUInt16() - 1;
			if (typeDefIndex >= 0) Parent = pFile.TypeDefTable[typeDefIndex];
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:9,代码来源:ClassLayoutData.cs

示例10: Initialize

		public static void Initialize(CLIFile pFile)
		{
			if ((pFile.CLIMetadataTables.PresentTables & (1ul << MetadataTables.PropertyMap)) != 0)
			{
				pFile.PropertyMapTable = new PropertyMapData[pFile.ReadInt32()];
				for (int index = 0; index < pFile.PropertyMapTable.Length; ++index) pFile.PropertyMapTable[index] = new PropertyMapData() { CLIFile = pFile, TableIndex = index };
			}
			else pFile.PropertyMapTable = new PropertyMapData[0];
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:9,代码来源:PropertyMapData.cs

示例11: LoadData

 private void LoadData(CLIFile pFile)
 {
     Semantics = pFile.ReadUInt16();
     int methodDefIndex = 0;
     if (pFile.MethodDefTable.Length >= 0xFFFF) methodDefIndex = pFile.ReadInt32() - 1;
     else methodDefIndex = pFile.ReadUInt16() - 1;
     if (methodDefIndex >= 0) Method = pFile.MethodDefTable[methodDefIndex];
     Association.LoadData(pFile);
 }
开发者ID:Astaelan,项目名称:Fusion,代码行数:9,代码来源:MethodSemanticsData.cs

示例12: Initialize

 public static void Initialize(CLIFile pFile)
 {
     if ((pFile.CLIMetadataTablesHeader.PresentTables & (1ul << CLIMetadataTables.GenericParam)) != 0)
     {
         pFile.GenericParamTable = new GenericParamData[pFile.ReadInt32()];
         for (int index = 0; index < pFile.GenericParamTable.Length; ++index) pFile.GenericParamTable[index] = new GenericParamData() { CLIFile = pFile, TableIndex = index };
     }
     else pFile.GenericParamTable = new GenericParamData[0];
 }
开发者ID:Astaelan,项目名称:Fusion,代码行数:9,代码来源:GenericParamData.cs

示例13: Initialize

 public static void Initialize(CLIFile pFile)
 {
     if ((pFile.CLIMetadataTablesHeader.PresentTables & (1ul << CLIMetadataTables.ManifestResource)) != 0)
     {
         pFile.ManifestResourceTable = new ManifestResourceData[pFile.ReadInt32()];
         for (int index = 0; index < pFile.ManifestResourceTable.Length; ++index) pFile.ManifestResourceTable[index] = new ManifestResourceData() { CLIFile = pFile, TableIndex = index };
     }
     else pFile.ManifestResourceTable = new ManifestResourceData[0];
 }
开发者ID:Astaelan,项目名称:Fusion,代码行数:9,代码来源:ManifestResourceData.cs

示例14: Initialize

 public static void Initialize(CLIFile pFile)
 {
     if ((pFile.CLIMetadataTablesHeader.PresentTables & (1ul << CLIMetadataTables.AssemblyProcessor)) != 0)
     {
         pFile.AssemblyProcessorTable = new AssemblyProcessorData[pFile.ReadInt32()];
         for (int index = 0; index < pFile.AssemblyProcessorTable.Length; ++index) pFile.AssemblyProcessorTable[index] = new AssemblyProcessorData() { CLIFile = pFile, TableIndex = index };
     }
     else pFile.AssemblyProcessorTable = new AssemblyProcessorData[0];
 }
开发者ID:Astaelan,项目名称:Fusion,代码行数:9,代码来源:AssemblyProcessorData.cs

示例15: LoadData

 private void LoadData(CLIFile pFile)
 {
     OSPlatformId = pFile.ReadUInt32();
     OSMajorVersion = pFile.ReadUInt32();
     OSMinorVersion = pFile.ReadUInt32();
     int assemblyRefIndex = 0;
     if (pFile.AssemblyRefTable.Length >= 0xFFFF) assemblyRefIndex = pFile.ReadInt32() - 1;
     else assemblyRefIndex = pFile.ReadUInt16() - 1;
     if (assemblyRefIndex >= 0) AssemblyRef = pFile.AssemblyRefTable[assemblyRefIndex];
 }
开发者ID:Astaelan,项目名称:Fusion,代码行数:10,代码来源:AssemblyRefOSData.cs


注:本文中的CLIFile.ReadInt32方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。