code: public Constant nextVal(Type type) {
  		Constant val = pg.getVal(currentPos, type);
  		currentPos += Page.size(val);
  		return val;
  	}
docs: Returns the next value of this log record.
  
  @param type
  the expected type of the value
  @return the next value