Exemplo n.º 1
0
 /// <summary>
 /// Creates a new thunk table buffer, that uses the provided hint-name table to reference names.
 /// </summary>
 /// <param name="hintNameTable">The hint-name table containing the names of each imported member</param>
 /// <param name="is32Bit">Indicates whether the thunk-table should use 32-bit addresses or 64-bit addresses.</param>
 /// <param name="isIat">Indicates the buffer contains the import address table or lookup table.</param>
 public ThunkTableBuffer(HintNameTableBuffer hintNameTable, bool is32Bit, bool isIat)
 {
     _hintNameTable = hintNameTable ?? throw new ArgumentNullException(nameof(hintNameTable));
     _isIat         = isIat;
     Is32Bit        = is32Bit;
     _length        = ThunkSize;
 }
 /// <summary>
 /// Initializes the new import directory buffer with a hint-name table.
 /// </summary>
 /// <param name="hintNameTable">The hint-name table that is used to reference names of modules or members.</param>
 /// <param name="is32Bit">Indicates the import directory should use 32-bit addresses or 64-bit addresses.</param>
 protected ImportDirectoryBufferBase(HintNameTableBuffer hintNameTable, bool is32Bit)
 {
     HintNameTable = hintNameTable ?? throw new ArgumentNullException(nameof(hintNameTable));
     Is32Bit       = is32Bit;
 }