STRING support for java fields
This commit is contained in:
parent
96523632c1
commit
4c07e66dce
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue