STRING support for java fields

This commit is contained in:
rusefi 2020-07-18 19:39:20 -04:00
parent 70103e281a
commit 514711a655
1 changed files with 5 additions and 1 deletions

View File

@ -40,7 +40,7 @@ public class Field {
this(name, offset, 0, type, bitOffset, options);
}
public Field(String name, int offset, int stringSize, FieldType type, int bitOffset, String[] options) {
public Field(String name, int offset, int stringSize, FieldType type, int bitOffset, String... options) {
this.name = name;
this.offset = offset;
this.stringSize = stringSize;
@ -198,6 +198,10 @@ public class Field {
return field;
}
public static Field create(String name, int offset, int stringSize, FieldType type) {
return new Field(name, offset, stringSize, type, 0);
}
public static Field create(String name, int offset, FieldType type) {
Field field = new Field(name, offset, type);
return field;