Home
last modified time | relevance | path

Searched refs:newLimit (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/
DBuffer.java379 public Buffer limit(int newLimit) {
380 if (newLimit > capacity | newLimit < 0)
381 throw createLimitException(newLimit);
382 limit = newLimit;
383 if (position > newLimit) position = newLimit;
384 if (mark > newLimit) mark = -1;
397 private IllegalArgumentException createLimitException(int newLimit) { in createLimitException() argument
400 if (newLimit > capacity) { in createLimitException()
401 msg = "newLimit > capacity: (" + newLimit + " > " + capacity + ")"; in createLimitException()
403 assert newLimit < 0 : "newLimit expected to be negative"; in createLimitException()
[all …]
DMappedByteBuffer.java428 public final Buffer limit(int newLimit) { in limit() argument
429 super.limit(newLimit); in limit()
DDoubleBuffer.java1662 Buffer limit(int newLimit) { in limit() argument
1663 super.limit(newLimit); in limit()
DIntBuffer.java1662 Buffer limit(int newLimit) { in limit() argument
1663 super.limit(newLimit); in limit()
DFloatBuffer.java1662 Buffer limit(int newLimit) { in limit() argument
1663 super.limit(newLimit); in limit()
DLongBuffer.java1662 Buffer limit(int newLimit) { in limit() argument
1663 super.limit(newLimit); in limit()
DShortBuffer.java1662 Buffer limit(int newLimit) { in limit() argument
1663 super.limit(newLimit); in limit()
DByteBuffer.java1662 Buffer limit(int newLimit) { in limit() argument
1663 super.limit(newLimit); in limit()
DCharBuffer.java1662 Buffer limit(int newLimit) { in limit() argument
1663 super.limit(newLimit); in limit()
DX-Buffer.java.template1662 Buffer limit(int newLimit) {
1663 super.limit(newLimit);
/libcore/ojluni/annotations/flagged_api/java/nio/
DMappedByteBuffer.annotated.java46 public final java.nio.Buffer limit(int newLimit) { throw new RuntimeException("Stub!"); } in limit() argument
DFloatBuffer.annotated.java93 public java.nio.Buffer limit(int newLimit) { throw new RuntimeException("Stub!"); } in limit() argument
DIntBuffer.annotated.java93 public java.nio.Buffer limit(int newLimit) { throw new RuntimeException("Stub!"); } in limit() argument
DShortBuffer.annotated.java93 public java.nio.Buffer limit(int newLimit) { throw new RuntimeException("Stub!"); } in limit() argument
DDoubleBuffer.annotated.java93 public java.nio.Buffer limit(int newLimit) { throw new RuntimeException("Stub!"); } in limit() argument
DLongBuffer.annotated.java93 public java.nio.Buffer limit(int newLimit) { throw new RuntimeException("Stub!"); } in limit() argument
DCharBuffer.annotated.java103 public java.nio.Buffer limit(int newLimit) { throw new RuntimeException("Stub!"); } in limit() argument
DByteBuffer.annotated.java95 public java.nio.Buffer limit(int newLimit) { throw new RuntimeException("Stub!"); } in limit() argument
/libcore/ojluni/annotations/hiddenapi/java/nio/
DBuffer.java54 public final java.nio.Buffer limit(int newLimit) { in limit() argument
/libcore/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java87 @libcore.util.NonNull public java.nio.Buffer limit(int newLimit) { throw new RuntimeException("Stub… in limit() argument