private void LoadData(CLIFile pFile) { InitialValueOffset = pFile.ReadUInt32(); CLIFile.SectionHeader sectionHeader = pFile.GetSection(InitialValueOffset); InitialValueOffset = sectionHeader.PointerToRawData + (InitialValueOffset - sectionHeader.VirtualAddress); int fieldIndex = 0; if (pFile.FieldTable.Length >= 0xFFFF) fieldIndex = pFile.ReadInt32() - 1; else fieldIndex = pFile.ReadUInt16() - 1; if (fieldIndex >= 0) Field = pFile.FieldTable[fieldIndex]; }
private void LoadData(CLIFile pFile) { InitialValueOffset = pFile.ReadUInt32(); SectionHeader sectionHeader = pFile.GetSection(InitialValueOffset); InitialValueOffset = sectionHeader.PointerToRawData + (InitialValueOffset - sectionHeader.VirtualAddress); int fieldIndex = 0; if (pFile.FieldTable.Length >= 0xFFFF) { fieldIndex = pFile.ReadInt32() - 1; } else { fieldIndex = pFile.ReadUInt16() - 1; } if (fieldIndex >= 0) { Field = pFile.FieldTable[fieldIndex]; } }