code: private void expand(int newCapacity) {
      byte[][] newNamesAndValues = new byte[newCapacity][];
      if (!isEmpty()) {
        System.arraycopy(namesAndValues, 0, newNamesAndValues, 0, len());
      }
      namesAndValues = newNamesAndValues;
    }
docs: Expands to exactly the desired capacity.