/libcore/luni/src/main/java/java/nio/ |
CharArrayBuffer.java | 27 private final int arrayOffset; 35 private CharArrayBuffer(int capacity, char[] backingArray, int arrayOffset, boolean isReadOnly) { 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 + position++] [all...] |
DoubleArrayBuffer.java | 27 private final int arrayOffset; 35 private DoubleArrayBuffer(int capacity, double[] backingArray, int arrayOffset, boolean isReadOnly) { 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 + position++] [all...] |
FloatArrayBuffer.java | 27 private final int arrayOffset; 35 private FloatArrayBuffer(int capacity, float[] backingArray, int arrayOffset, boolean isReadOnly) { 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 + position++] [all...] |
IntArrayBuffer.java | 27 private final int arrayOffset; 35 private IntArrayBuffer(int capacity, int[] backingArray, int arrayOffset, boolean isReadOnly) { 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 + position++] [all...] |
LongArrayBuffer.java | 27 private final int arrayOffset; 35 private LongArrayBuffer(int capacity, long[] backingArray, int arrayOffset, boolean isReadOnly) { 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 + position++] [all...] |
ShortArrayBuffer.java | 27 private final int arrayOffset; 35 private ShortArrayBuffer(int capacity, short[] backingArray, int arrayOffset, boolean isReadOnly) { 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 + position++] [all...] |
ByteArrayBuffer.java | 32 final int arrayOffset; 40 private ByteArrayBuffer(int capacity, byte[] backingArray, int arrayOffset, boolean isReadOnly) { 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, remaining()) [all...] |
NIOAccess.java | 66 return b.hasArray() ? ((b.arrayOffset() + b.position) << b._elementSizeShift) : 0;
|
NioUtils.java | 63 return ((ByteArrayBuffer) b).arrayOffset;
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/ |
ByteBufferHelper.java | 32 nuSamples.get(lastIndex).arrayOffset() + nuSamples.get(lastIndex).limit() == buffer.arrayOffset()) { 34 ByteBuffer nu = ByteBuffer.wrap(buffer.array(), oldBuffer.arrayOffset(), oldBuffer.limit() + buffer.limit()).slice(); 35 // We need to slice here since wrap([], offset, length) just sets position and not the arrayOffset.
|
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ |
DirectCharBufferTest.java | 48 buf.arrayOffset();
|
DirectDoubleBufferTest.java | 47 buf.arrayOffset();
|
DirectFloatBufferTest.java | 47 buf.arrayOffset();
|
DirectIntBufferTest.java | 47 buf.arrayOffset();
|
DirectLongBufferTest.java | 48 buf.arrayOffset();
|
DirectShortBufferTest.java | 47 buf.arrayOffset();
|
DoubleBufferTest.java | 76 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 78 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 79 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 81 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 82 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 85 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 88 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 93 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 95 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 96 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()) [all...] |
FloatBufferTest.java | 52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()) [all...] |
IntBufferTest.java | 52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()) [all...] |
LongBufferTest.java | 52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()) [all...] |
ShortBufferTest.java | 51 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 53 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 54 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 56 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 57 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 60 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 63 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 68 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 70 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 71 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()) [all...] |
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
Chunk.java | 60 this.offset = buf.arrayOffset();
|
/libcore/luni/src/test/java/libcore/java/nio/ |
NoArrayTest.java | 40 buf.arrayOffset();
|
/libcore/luni/src/main/java/java/nio/charset/ |
CharsetDecoderICU.java | 170 outEnd = out.arrayOffset() + out.limit(); 171 return out.arrayOffset() + out.position(); 186 inEnd = in.arrayOffset() + in.limit(); 187 return in.arrayOffset() + in.position(); 205 out.position(out.position() + data[OUTPUT_OFFSET] - out.arrayOffset());
|
CharsetEncoderICU.java | 207 outEnd = out.arrayOffset() + out.limit(); 208 return out.arrayOffset() + out.position(); 223 inEnd = in.arrayOffset() + in.limit(); 224 return in.arrayOffset() + in.position(); 242 out.position(out.position() + data[OUTPUT_OFFSET] - out.arrayOffset());
|