mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-22 06:45:11 +00:00
Add placeholder for figuring something out later
This commit is contained in:
@@ -250,6 +250,23 @@ namespace SabreTools.Serialization.Deserializers
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Figure out how to use this in lieu of the current ParseImportAddressTables
|
||||
if (optionalHeader.ImportAddressTable != null)
|
||||
{
|
||||
offset = initialOffset
|
||||
+ optionalHeader.ImportAddressTable.VirtualAddress.ConvertVirtualAddress(pex.SectionTable);
|
||||
if (offset > initialOffset && offset < data.Length)
|
||||
{
|
||||
// Get the required table size
|
||||
int tableSize = (int)optionalHeader.ImportAddressTable.Size;
|
||||
|
||||
// Read the table data
|
||||
byte[]? tableData = data.ReadFrom(offset, tableSize, retainPosition: true);
|
||||
|
||||
// Remaining code goes here
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Resource Directory Table
|
||||
|
||||
Reference in New Issue
Block a user