jill/src/main/java/io/github/agentsoz/jill/struct/GoalPlanType.java
public static byte[] grow(byte[] bytes, int increment) {
    if (bytes == null) {
      return new byte[1];
    }
    byte[] temp = new byte[bytes.length + increment];
    System.arraycopy(bytes, 0, temp, 0, bytes.length);
    return temp;
  }
public static byte[] grow(byte[] bytes, int increment) {
    if (bytes == null) {
      return new byte[1];
    }
    byte[] temp = new byte[bytes.length + increment];
    System.arraycopy(bytes, 0, temp, 0, bytes.length);
    return temp;
  }
Grows the given array by the given size.

@param bytes the array to grow
@param increment the size by which to grow it
@return the new extended array with all the contents of the old array copied over