Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java116 return hb[ix(checkIndex(i))]; in get()
153 hb[ix(checkIndex(i))] = x; in put()
202 return Bits.getChar(this, ix(checkIndex(i, 2)), bigEndian); in getChar()
229 Bits.putChar(this, ix(checkIndex(i, 2)), x, bigEndian); in putChar()
263 return Bits.getShort(this, ix(checkIndex(i, 2)), bigEndian); in getShort()
290 Bits.putShort(this, ix(checkIndex(i, 2)), x, bigEndian); in putShort()
324 return Bits.getInt(this, ix(checkIndex(i, 4)), bigEndian); in getInt()
351 Bits.putInt(this, ix(checkIndex(i, 4)), x, bigEndian); in putInt()
386 return Bits.getLong(this, ix(checkIndex(i, 8)), bigEndian); in getLong()
413 Bits.putLong(this, ix(checkIndex(i, 8)), x, bigEndian); in putLong()
[all …]
DStringCharBuffer.java77 return str.charAt(checkIndex(index) + offset); in get()
111 pos + checkIndex(start, pos), in subSequence()
112 pos + checkIndex(end, pos), in subSequence()
DDirectByteBuffer.java224 return get(ix(checkIndex(i))); in get()
279 put(ix(checkIndex(i)), x); in put()
365 checkIndex(i, Character.BYTES); in getChar()
411 putChar(ix(checkIndex(i, Character.BYTES)), x); in putChar()
468 return getShort(ix(checkIndex(i, Short.BYTES))); in getShort()
513 putShort(ix(checkIndex(i, Short.BYTES)), x); in putShort()
570 return getInt(ix(checkIndex(i, (Integer.BYTES)))); in getInt()
615 putInt(ix(checkIndex(i, Integer.BYTES)), x); in putInt()
672 return getLong(ix(checkIndex(i, Long.BYTES))); in getLong()
717 putLong(ix(checkIndex(i, Long.BYTES)), x); in putLong()
[all …]
DBuffer.java553 final int checkIndex(int i) { // package-private in checkIndex() method in Buffer
561 final int checkIndex(int i, int nb) { // package-private in checkIndex() method in Buffer
DByteBufferAsFloatBuffer.java96 return bb.getFloatUnchecked(ix(checkIndex(i))); in get()
117 bb.putFloatUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsDoubleBuffer.java97 return bb.getDoubleUnchecked(ix(checkIndex(i))); in get()
118 bb.putDoubleUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsShortBuffer.java94 return bb.getShortUnchecked(ix(checkIndex(i))); in get()
116 bb.putShortUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsIntBuffer.java96 return bb.getIntUnchecked(ix(checkIndex(i))); in get()
117 bb.putIntUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsLongBuffer.java96 return bb.getLongUnchecked(ix(checkIndex(i))); in get()
117 bb.putLongUnchecked(ix(checkIndex(i)), x); in put()
DHeapLongBuffer.java115 return hb[ix(checkIndex(i))]; in get()
147 hb[ix(checkIndex(i))] = x; in put()
DHeapDoubleBuffer.java114 return hb[ix(checkIndex(i))]; in get()
146 hb[ix(checkIndex(i))] = x; in put()
DHeapShortBuffer.java114 return hb[ix(checkIndex(i))]; in get()
146 hb[ix(checkIndex(i))] = x; in put()
DHeapFloatBuffer.java113 return hb[ix(checkIndex(i))]; in get()
145 hb[ix(checkIndex(i))] = x; in put()
DHeapIntBuffer.java114 return hb[ix(checkIndex(i))]; in get()
146 hb[ix(checkIndex(i))] = x; in put()
DHeapCharBuffer.java115 return hb[ix(checkIndex(i))]; in get()
151 hb[ix(checkIndex(i))] = x; in put()
DByteBufferAsCharBuffer.java96 return bb.getCharUnchecked(ix(checkIndex(i))); in get()
121 bb.putCharUnchecked(ix(checkIndex(i)), x); in put()
DCharBuffer.java1111 return get(position() + checkIndex(index, 1)); in charAt()
/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