code: public static int size(Constant val) {
  		return val.getType().isFixedSize() ? val.size() : ByteHelper.INT_SIZE + val.size();
  	}
docs: Calculates the number of bytes required to store a {@link Constant
  constant} in disk.
  
  @param val
  the specified value
  @return the number of bytes required