public IMAGE_BASE_RELOCATION ( byte buff, uint offset, uint relocSize ) : System | ||
buff | byte | PE binary as byte array. |
offset | uint | Offset to the relocation struct in the binary. |
relocSize | uint | Size of the complete relocation directory. |
Résultat | System |
public IMAGE_BASE_RELOCATION(byte[] buff, uint offset, uint relocSize)
: base(buff, offset)
{
if (SizeOfBlock > relocSize)
throw new ArgumentOutOfRangeException(nameof(relocSize),
"SizeOfBlock cannot be bigger than size of the Relocation Directory.");
if(SizeOfBlock < 8)
throw new Exception("SizeOfBlock cannot be smaller than 8.");
ParseTypeOffsets();
}