code: public static int maxSize(Type type) {
  		return type.isFixedSize() ? type.maxSize() : ByteHelper.INT_SIZE + type.maxSize();
  	}
docs: Calculates the maximum number of bytes required to store a value of a
  particular {@link Type type} in disk.
  
  @param type
  the specified type
  @return the number of bytes required