本文整理汇总了C#中CLIFile.ReadUInt16方法的典型用法代码示例。如果您正苦于以下问题:C# CLIFile.ReadUInt16方法的具体用法?C# CLIFile.ReadUInt16怎么用?C# CLIFile.ReadUInt16使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CLIFile
的用法示例。
在下文中一共展示了CLIFile.ReadUInt16方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadData
private void LoadData(CLIFile pFile)
{
Number = pFile.ReadUInt16();
Flags = (GenericParamAttributes)pFile.ReadUInt16();
Owner.LoadData(pFile);
Name = pFile.ReadStringHeap(pFile.ReadHeapIndex(HeapOffsetSizes.Strings32Bit));
}
示例2: LoadData
private void LoadData(CLIFile pFile)
{
Number = pFile.ReadUInt16();
Flags = pFile.ReadUInt16();
Owner.LoadData(pFile);
Name = pFile.ReadStringHeap(pFile.ReadHeapIndex(CLIHeapOffsetSize.Strings32Bit));
}
示例3: 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);
}
示例4: 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];
}
示例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) Parent = pFile.TypeDefTable[typeDefIndex];
if (pFile.PropertyTable.Length >= 0xFFFF) PropertyListIndex = pFile.ReadInt32() - 1;
else PropertyListIndex = pFile.ReadUInt16() - 1;
}
示例6: LoadData
private void LoadData(CLIFile pFile)
{
MappingFlags = (PInvokeAttributes)pFile.ReadUInt16();
MemberForwarded.LoadData(pFile);
ImportName = pFile.ReadStringHeap(pFile.ReadHeapIndex(HeapOffsetSizes.Strings32Bit));
int moduleRefIndex = 0;
if (pFile.ModuleRefTable.Length >= 0xFFFF) moduleRefIndex = pFile.ReadInt32() - 1;
else moduleRefIndex = pFile.ReadUInt16() - 1;
if (moduleRefIndex >= 0) ImportScope = pFile.ModuleRefTable[moduleRefIndex];
}
示例7: 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;
}
示例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) 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];
}
示例9: LoadData
private void LoadData(CLIFile pFile)
{
HashAlgId = pFile.ReadUInt32();
MajorVersion = pFile.ReadUInt16();
MinorVersion = pFile.ReadUInt16();
BuildNumber = pFile.ReadUInt16();
RevisionNumber = pFile.ReadUInt16();
Flags = pFile.ReadUInt32();
PublicKey = pFile.ReadBlobHeap(pFile.ReadHeapIndex(CLIHeapOffsetSize.Blob32Bit));
Name = pFile.ReadStringHeap(pFile.ReadHeapIndex(CLIHeapOffsetSize.Strings32Bit));
Culture = pFile.ReadStringHeap(pFile.ReadHeapIndex(CLIHeapOffsetSize.Strings32Bit));
}
示例10: LoadData
private void LoadData(CLIFile pFile)
{
RVA = pFile.ReadUInt32();
ImplFlags = (MethodImplAttributes)pFile.ReadUInt16();
Flags = (MethodAttributes)pFile.ReadUInt16();
Name = pFile.ReadStringHeap(pFile.ReadHeapIndex(CLIHeapOffsetSize.Strings32Bit));
Signature = pFile.ReadBlobHeap(pFile.ReadHeapIndex(CLIHeapOffsetSize.Blob32Bit));
if (pFile.ParamTable.Length >= 0xFFFF) ParamListIndex = pFile.ReadInt32() - 1;
else ParamListIndex = pFile.ReadUInt16() - 1;
if (RVA != 0)
{
Body = new MethodDefBodyData();
Body.LoadData(this);
}
}
示例11: LoadData
private void LoadData(CLIFile pFile)
{
Generation = pFile.ReadUInt16();
Name = pFile.ReadStringHeap(pFile.ReadHeapIndex(CLIHeapOffsetSize.Strings32Bit));
Mvid = pFile.ReadGUIDHeap(pFile.ReadHeapIndex(CLIHeapOffsetSize.GUID32Bit));
EncId = pFile.ReadGUIDHeap(pFile.ReadHeapIndex(CLIHeapOffsetSize.GUID32Bit));
EncBaseId = pFile.ReadGUIDHeap(pFile.ReadHeapIndex(CLIHeapOffsetSize.GUID32Bit));
}
示例12: 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);
}
示例13: 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];
}
示例14: 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);
}
示例15: 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];
}