Home
last modified time | relevance | path

Searched refs:checkIndex (Results 1 – 25 of 38) sorted by relevance

12

/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java226 return hb[ix(checkIndex(i))]; in get()
286 hb[ix(checkIndex(i))] = x; in put()
455 return Bits.getChar(this, ix(checkIndex(i, 2)), bigEndian); in getChar()
493 Bits.putChar(this, ix(checkIndex(i, 2)), x, bigEndian); in putChar()
559 return Bits.getShort(this, ix(checkIndex(i, 2)), bigEndian); in getShort()
595 Bits.putShort(this, ix(checkIndex(i, 2)), x, bigEndian); in putShort()
661 return Bits.getInt(this, ix(checkIndex(i, 4)), bigEndian); in getInt()
699 Bits.putInt(this, ix(checkIndex(i, 4)), x, bigEndian); in putInt()
764 return Bits.getLong(this, ix(checkIndex(i, 8)), bigEndian); in getLong()
802 Bits.putLong(this, ix(checkIndex(i, 8)), x, bigEndian); in putLong()
[all …]
DDirectByteBuffer.java253 return get(ix(checkIndex(i))); in get()
308 put(ix(checkIndex(i)), x); in put()
396 checkIndex(i, Character.BYTES); in getChar()
442 putChar(ix(checkIndex(i, Character.BYTES)), x); in putChar()
499 return getShort(ix(checkIndex(i, Short.BYTES))); in getShort()
544 putShort(ix(checkIndex(i, Short.BYTES)), x); in putShort()
601 return getInt(ix(checkIndex(i, (Integer.BYTES)))); in getInt()
646 putInt(ix(checkIndex(i, Integer.BYTES)), x); in putInt()
703 return getLong(ix(checkIndex(i, Long.BYTES))); in getLong()
748 putLong(ix(checkIndex(i, Long.BYTES)), x); in putLong()
[all …]
DStringCharBuffer.java97 return str.charAt(checkIndex(index) + offset); in get()
131 pos + checkIndex(start, pos), in subSequence()
132 pos + checkIndex(end, pos), in subSequence()
DHeap-X-Buffer.java.template226 return hb[ix(checkIndex(i))];
286 hb[ix(checkIndex(i))] = x;
454 …// return SCOPED_MEMORY_ACCESS.getCharUnaligned(scope(), hb, byteOffset(checkIndex(i, 2)), bigEndi…
455 return Bits.getChar(this, ix(checkIndex(i, 2)), bigEndian);
492 …// SSCOPED_MEMORY_ACCESS.putCharUnaligned(scope(), hb, byteOffset(checkIndex(i, 2)), x, bigEndian);
493 Bits.putChar(this, ix(checkIndex(i, 2)), x, bigEndian);
558 …// return SCOPED_MEMORY_ACCESS.getShortUnaligned(scope(), hb, byteOffset(checkIndex(i, 2)), bigEnd…
559 return Bits.getShort(this, ix(checkIndex(i, 2)), bigEndian);
594 …// SCOPED_MEMORY_ACCESS.putShortUnaligned(scope(), hb, byteOffset(checkIndex(i, 2)), x, bigEndian);
595 Bits.putShort(this, ix(checkIndex(i, 2)), x, bigEndian);
[all …]
DBuffer.java753 final int checkIndex(int i) { // package-private
761 final int checkIndex(int i, int nb) { // package-private
DByteBufferAsDoubleBuffer.java172 return bb.getDoubleUnchecked(ix(checkIndex(i))); in get()
233 bb.putDoubleUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsLongBuffer.java172 return bb.getLongUnchecked(ix(checkIndex(i))); in get()
233 bb.putLongUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsIntBuffer.java172 return bb.getIntUnchecked(ix(checkIndex(i))); in get()
233 bb.putIntUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsShortBuffer.java172 return bb.getShortUnchecked(ix(checkIndex(i))); in get()
233 bb.putShortUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsFloatBuffer.java172 return bb.getFloatUnchecked(ix(checkIndex(i))); in get()
233 bb.putFloatUnchecked(ix(checkIndex(i)), x); in put()
DHeapIntBuffer.java226 return hb[ix(checkIndex(i))]; in get()
286 hb[ix(checkIndex(i))] = x; in put()
DHeapFloatBuffer.java226 return hb[ix(checkIndex(i))]; in get()
286 hb[ix(checkIndex(i))] = x; in put()
DHeapShortBuffer.java226 return hb[ix(checkIndex(i))]; in get()
286 hb[ix(checkIndex(i))] = x; in put()
DHeapLongBuffer.java226 return hb[ix(checkIndex(i))]; in get()
286 hb[ix(checkIndex(i))] = x; in put()
DHeapDoubleBuffer.java226 return hb[ix(checkIndex(i))]; in get()
286 hb[ix(checkIndex(i))] = x; in put()
DDirect-X-Buffer-bin.java.template53 return get$Type$(ix(checkIndex(i, $BYTES_PER_VALUE$)));
86 put$Type$(ix(checkIndex(i, $BYTES_PER_VALUE$)), x);
DByteBufferAsCharBuffer.java172 return bb.getCharUnchecked(ix(checkIndex(i))); in get()
233 bb.putCharUnchecked(ix(checkIndex(i)), x); in put()
/libcore/ojluni/src/main/java/java/util/
DObjects.java358 int checkIndex(int index, int length) { in checkIndex() method in Objects
359 return Preconditions.checkIndex(index, length, null); in checkIndex()
435 long checkIndex(long index, long length) { in checkIndex() method in Objects
436 return Preconditions.checkIndex(index, length, null); in checkIndex()
DReverseOrderListView.java340 Objects.checkIndex(i, size); in get()
367 Objects.checkIndex(index, size); in remove()
389 Objects.checkIndex(index, size); in set()
/libcore/luni/src/test/java/libcore/java/util/
DObjectsTest.java105 Objects.checkIndex(0, 1); in test_checkIndex_size1()
115 Objects.checkIndex(0, 100); in test_checkIndex_largeSize()
116 Objects.checkIndex(99, 100); in test_checkIndex_largeSize()
117 Objects.checkIndex(100, Integer.MAX_VALUE); in test_checkIndex_largeSize()
118 Objects.checkIndex(Integer.MAX_VALUE - 1, Integer.MAX_VALUE); in test_checkIndex_largeSize()
127 Objects.checkIndex(index, length); in assertIndexOutOfBounds()
/libcore/ojluni/annotations/hiddenapi/java/nio/
DBuffer.java112 final int checkIndex(int i) { in checkIndex() method in Buffer
116 final int checkIndex(int i, int nb) { in checkIndex() method in Buffer
/libcore/ojluni/src/test/java/util/Objects/
DCheckIndex.java119 () -> Preconditions.checkIndex(index, length,
122 () -> Preconditions.checkIndex(index, length,
125 () -> Preconditions.checkIndex(index, length, null));
127 () -> Objects.checkIndex(index, length));
129 () -> Preconditions.checkIndex(index, length,
132 () -> Preconditions.checkIndex(index, length,
DCheckLongIndex.java118 () -> Preconditions.checkIndex(index, length,
121 () -> Preconditions.checkIndex(index, length,
124 () -> Preconditions.checkIndex(index, length, null));
126 () -> Objects.checkIndex(index, length));
128 () -> Preconditions.checkIndex(index, length,
131 () -> Preconditions.checkIndex(index, length,
/libcore/ojluni/src/main/java/java/lang/
DStringUTF16.java104 checkIndex(index, value);
109 checkIndex(index, value);
126 checkIndex(index, value);
132 checkIndex(index, value);
558 String.checkIndex(strLastIndex, tgt.length());
561 checkIndex(i, src);
1518 checkIndex(index, val);
1604 checkIndex(index, value);
1610 checkIndex(index, value);
1674 checkIndex(i, src);
[all …]
/libcore/ojluni/src/main/java/jdk/internal/util/
DPreconditions.java263 int checkIndex(int index, int length,
410 long checkIndex(long index, long length,

12