mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
ArrayDataType: add constructor without elementLength parameter
The elementLength parameter is unused when the base type isn't dynamic, but the existing constructors require it to be specified.
This commit is contained in:
parent
2a7897c366
commit
880631356d
1 changed files with 9 additions and 0 deletions
|
@ -32,6 +32,15 @@ public class ArrayDataType extends DataTypeImpl implements Array {
|
|||
private int elementLength;
|
||||
private boolean deleted = false;
|
||||
|
||||
/**
|
||||
* Constructs a new Array dataType.
|
||||
* @param dataType the dataType of the elements in the array (null is not permitted).
|
||||
* @param numElements the number of elements in the array (0 is permitted).
|
||||
*/
|
||||
public ArrayDataType(DataType dataType, int numElements) {
|
||||
this(dataType, numElements, -1, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new Array dataType.
|
||||
* @param dataType the dataType of the elements in the array (null is not permitted).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue