Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java118 return hb[ix(checkIndex(i))]; in get()
150 hb[ix(checkIndex(i))] = x; in put()
193 return Bits.getChar(this, ix(checkIndex(i, 2)), bigEndian); in getChar()
216 Bits.putChar(this, ix(checkIndex(i, 2)), x, bigEndian); in putChar()
245 return Bits.getShort(this, ix(checkIndex(i, 2)), bigEndian); in getShort()
268 Bits.putShort(this, ix(checkIndex(i, 2)), x, bigEndian); in putShort()
297 return Bits.getInt(this, ix(checkIndex(i, 4)), bigEndian); in getInt()
320 Bits.putInt(this, ix(checkIndex(i, 4)), x, bigEndian); in putInt()
350 return Bits.getLong(this, ix(checkIndex(i, 8)), bigEndian); in getLong()
373 Bits.putLong(this, ix(checkIndex(i, 8)), x, bigEndian); in putLong()
[all …]
DStringCharBuffer.java76 return str.charAt(checkIndex(index) + offset); in get()
110 pos + checkIndex(start, pos), in subSequence()
111 pos + checkIndex(end, pos), in subSequence()
DDirectByteBuffer.java204 return get(ix(checkIndex(i))); in get()
247 put(ix(checkIndex(i)), x); in put()
329 checkIndex(i, SizeOf.CHAR); in getChar()
367 putChar(ix(checkIndex(i, SizeOf.CHAR)), x); in putChar()
413 return getShort(ix(checkIndex(i, SizeOf.SHORT))); in getShort()
449 putShort(ix(checkIndex(i, SizeOf.SHORT)), x); in putShort()
495 return getInt(ix(checkIndex(i, (SizeOf.INT)))); in getInt()
530 putInt(ix(checkIndex(i, SizeOf.INT)), x); in putInt()
577 return getLong(ix(checkIndex(i, SizeOf.LONG))); in getLong()
612 putLong(ix(checkIndex(i, SizeOf.LONG)), x); in putLong()
[all …]
DBuffer.java525 final int checkIndex(int i) { // package-private in checkIndex() method in Buffer
533 final int checkIndex(int i, int nb) { // package-private in checkIndex() method in Buffer
DByteBufferAsDoubleBuffer.java96 return bb.getDoubleUnchecked(ix(checkIndex(i))); in get()
117 bb.putDoubleUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsShortBuffer.java93 return bb.getShortUnchecked(ix(checkIndex(i))); in get()
115 bb.putShortUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsFloatBuffer.java95 return bb.getFloatUnchecked(ix(checkIndex(i))); in get()
116 bb.putFloatUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsIntBuffer.java95 return bb.getIntUnchecked(ix(checkIndex(i))); in get()
116 bb.putIntUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsLongBuffer.java95 return bb.getLongUnchecked(ix(checkIndex(i))); in get()
116 bb.putLongUnchecked(ix(checkIndex(i)), x); in put()
DHeapIntBuffer.java114 return hb[ix(checkIndex(i))]; in get()
146 hb[ix(checkIndex(i))] = x; in put()
DHeapLongBuffer.java115 return hb[ix(checkIndex(i))]; in get()
147 hb[ix(checkIndex(i))] = x; in put()
DHeapShortBuffer.java114 return hb[ix(checkIndex(i))]; in get()
146 hb[ix(checkIndex(i))] = x; in put()
DHeapDoubleBuffer.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()
DHeapCharBuffer.java115 return hb[ix(checkIndex(i))]; in get()
151 hb[ix(checkIndex(i))] = x; in put()
DByteBufferAsCharBuffer.java95 return bb.getCharUnchecked(ix(checkIndex(i))); in get()
120 bb.putCharUnchecked(ix(checkIndex(i)), x); in put()
DCharBuffer.java935 return get(position() + checkIndex(index, 1)); in charAt()