Searched defs:arrayOffset (Results 1 - 15 of 15) sorted by relevance

/libcore/luni/src/main/java/java/nio/
H A DBuffer.java129 * {@code buffer.array()[offset + buffer.arrayOffset()} to access element {@code offset}
140 public abstract int arrayOffset(); method in class:Buffer
239 * Returns true if {@code array} and {@code arrayOffset} won't throw. This method does not
H A DCharArrayBuffer.java27 private final int arrayOffset; field in class:CharArrayBuffer
35 private CharArrayBuffer(int capacity, char[] backingArray, int arrayOffset, boolean isReadOnly) { argument
38 this.arrayOffset = arrayOffset;
43 CharArrayBuffer buf = new CharArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly);
58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining());
70 return new CharArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly);
88 return arrayOffset;
102 return backingArray[arrayOffset
[all...]
H A DDoubleArrayBuffer.java27 private final int arrayOffset; field in class:DoubleArrayBuffer
35 private DoubleArrayBuffer(int capacity, double[] backingArray, int arrayOffset, boolean isReadOnly) { argument
38 this.arrayOffset = arrayOffset;
43 DoubleArrayBuffer buf = new DoubleArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly);
58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining());
70 return new DoubleArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly);
88 return arrayOffset;
102 return backingArray[arrayOffset
[all...]
H A DDoubleBuffer.java103 public final int arrayOffset() { method in class:DoubleBuffer
343 * Child class implements this method to realize {@code arrayOffset()}.
345 * @see #arrayOffset()
H A DFloatArrayBuffer.java27 private final int arrayOffset; field in class:FloatArrayBuffer
35 private FloatArrayBuffer(int capacity, float[] backingArray, int arrayOffset, boolean isReadOnly) { argument
38 this.arrayOffset = arrayOffset;
43 FloatArrayBuffer buf = new FloatArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly);
59 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining());
71 return new FloatArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly);
89 return arrayOffset;
103 return backingArray[arrayOffset
[all...]
H A DFloatBuffer.java104 public final int arrayOffset() { method in class:FloatBuffer
342 * Child class implements this method to realize {@code arrayOffset()}.
344 * @return see {@code arrayOffset()}
H A DIntArrayBuffer.java27 private final int arrayOffset; field in class:IntArrayBuffer
35 private IntArrayBuffer(int capacity, int[] backingArray, int arrayOffset, boolean isReadOnly) { argument
38 this.arrayOffset = arrayOffset;
43 IntArrayBuffer buf = new IntArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly);
58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining());
70 return new IntArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly);
88 return arrayOffset;
102 return backingArray[arrayOffset
[all...]
H A DIntBuffer.java100 public final int arrayOffset() { method in class:IntBuffer
328 * Child class implements this method to realize {@code arrayOffset()}.
330 * @return see {@code arrayOffset()}
H A DLongArrayBuffer.java27 private final int arrayOffset; field in class:LongArrayBuffer
35 private LongArrayBuffer(int capacity, long[] backingArray, int arrayOffset, boolean isReadOnly) { argument
38 this.arrayOffset = arrayOffset;
43 LongArrayBuffer buf = new LongArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly);
58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining());
70 return new LongArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly);
88 return arrayOffset;
102 return backingArray[arrayOffset
[all...]
H A DLongBuffer.java102 public final int arrayOffset() { method in class:LongBuffer
332 * Child class implements this method to realize {@code arrayOffset()}.
334 * @return see {@code arrayOffset()}
H A DShortArrayBuffer.java27 private final int arrayOffset; field in class:ShortArrayBuffer
35 private ShortArrayBuffer(int capacity, short[] backingArray, int arrayOffset, boolean isReadOnly) { argument
38 this.arrayOffset = arrayOffset;
43 ShortArrayBuffer buf = new ShortArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly);
58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining());
70 return new ShortArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly);
88 return arrayOffset;
102 return backingArray[arrayOffset
[all...]
H A DShortBuffer.java102 public final int arrayOffset() { method in class:ShortBuffer
331 * Child class implements this method to realize {@code arrayOffset()}.
333 * @return see {@code arrayOffset()}
H A DByteArrayBuffer.java32 final int arrayOffset; field in class:ByteArrayBuffer
40 private ByteArrayBuffer(int capacity, byte[] backingArray, int arrayOffset, boolean isReadOnly) { argument
43 this.arrayOffset = arrayOffset;
45 if (arrayOffset + capacity > backingArray.length) {
47 ", capacity=" + capacity + ", arrayOffset=" + arrayOffset);
52 ByteArrayBuffer buf = new ByteArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly);
67 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remainin
[all...]
H A DByteBuffer.java145 @Override public final int arrayOffset() { method in class:ByteBuffer
650 * Child class implements this method to realize {@code arrayOffset()}.
652 * @see #arrayOffset()
H A DCharBuffer.java148 public final int arrayOffset() { method in class:CharBuffer
405 * Child class implements this method to realize {@code arrayOffset()}.
407 * @see #arrayOffset()

Completed in 66 milliseconds