Searched refs:newLimit (Results 1 – 2 of 2) sorted by relevance
296 public final Buffer limit(int newLimit) { in limit() argument297 if (newLimit < 0 || newLimit > capacity) { in limit()298 … throw new IllegalArgumentException("Bad limit (capacity " + capacity + "): " + newLimit); in limit()301 limit = newLimit; in limit()302 if (position > newLimit) { in limit()303 position = newLimit; in limit()305 if ((mark != UNSET_MARK) && (mark > newLimit)) { in limit()
289 int newLimit = getRunLimit(attribute); in getRunLimit() local290 if (newLimit < limit) { in getRunLimit()291 limit = newLimit; in getRunLimit()