Home
last modified time | relevance | path

Searched refs:arrayOffset (Results 1 – 25 of 50) sorted by relevance

12

/libcore/luni/src/main/java/java/nio/
DLongArrayBuffer.java27 private final int arrayOffset; field in LongArrayBuffer
35 private LongArrayBuffer(int capacity, long[] backingArray, int arrayOffset, boolean isReadOnly) { in LongArrayBuffer() argument
38 this.arrayOffset = arrayOffset; in LongArrayBuffer()
43 …fer buf = new LongArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); in copy()
58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact()
70 return new LongArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice()
88 return arrayOffset; in protectedArrayOffset()
102 return backingArray[arrayOffset + position++]; in get()
107 return backingArray[arrayOffset + index]; in get()
114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, longCount); in get()
[all …]
DFloatArrayBuffer.java27 private final int arrayOffset; field in FloatArrayBuffer
35 …private FloatArrayBuffer(int capacity, float[] backingArray, int arrayOffset, boolean isReadOnly) { in FloatArrayBuffer() argument
38 this.arrayOffset = arrayOffset; in FloatArrayBuffer()
43 …er buf = new FloatArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); in copy()
59 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact()
71 return new FloatArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice()
89 return arrayOffset; in protectedArrayOffset()
103 return backingArray[arrayOffset + position++]; in get()
108 return backingArray[arrayOffset + index]; in get()
115 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, floatCount); in get()
[all …]
DDoubleArrayBuffer.java27 private final int arrayOffset; field in DoubleArrayBuffer
35 …private DoubleArrayBuffer(int capacity, double[] backingArray, int arrayOffset, boolean isReadOnly… in DoubleArrayBuffer() argument
38 this.arrayOffset = arrayOffset; in DoubleArrayBuffer()
43 …r buf = new DoubleArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); in copy()
58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact()
70 return new DoubleArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice()
88 return arrayOffset; in protectedArrayOffset()
102 return backingArray[arrayOffset + position++]; in get()
107 return backingArray[arrayOffset + index]; in get()
114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, doubleCount); in get()
[all …]
DShortArrayBuffer.java27 private final int arrayOffset; field in ShortArrayBuffer
35 …private ShortArrayBuffer(int capacity, short[] backingArray, int arrayOffset, boolean isReadOnly) { in ShortArrayBuffer() argument
38 this.arrayOffset = arrayOffset; in ShortArrayBuffer()
43 …er buf = new ShortArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); in copy()
58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact()
70 return new ShortArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice()
88 return arrayOffset; in protectedArrayOffset()
102 return backingArray[arrayOffset + position++]; in get()
107 return backingArray[arrayOffset + index]; in get()
114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, shortCount); in get()
[all …]
DIntArrayBuffer.java27 private final int arrayOffset; field in IntArrayBuffer
35 private IntArrayBuffer(int capacity, int[] backingArray, int arrayOffset, boolean isReadOnly) { in IntArrayBuffer() argument
38 this.arrayOffset = arrayOffset; in IntArrayBuffer()
43 …IntArrayBuffer buf = new IntArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, i… in copy()
58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact()
70 return new IntArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice()
88 return arrayOffset; in protectedArrayOffset()
102 return backingArray[arrayOffset + position++]; in get()
107 return backingArray[arrayOffset + index]; in get()
114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, intCount); in get()
[all …]
DCharArrayBuffer.java27 private final int arrayOffset; field in CharArrayBuffer
35 private CharArrayBuffer(int capacity, char[] backingArray, int arrayOffset, boolean isReadOnly) { in CharArrayBuffer() argument
38 this.arrayOffset = arrayOffset; in CharArrayBuffer()
43 …fer buf = new CharArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); in copy()
58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact()
70 return new CharArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice()
88 return arrayOffset; in protectedArrayOffset()
102 return backingArray[arrayOffset + position++]; in get()
107 return backingArray[arrayOffset + index]; in get()
114 System.arraycopy(backingArray, arrayOffset + position, dst, srcOffset, charCount); in get()
[all …]
DByteArrayBuffer.java32 final int arrayOffset; field in ByteArrayBuffer
40 private ByteArrayBuffer(int capacity, byte[] backingArray, int arrayOffset, boolean isReadOnly) { in ByteArrayBuffer() argument
43 this.arrayOffset = arrayOffset; in ByteArrayBuffer()
45 if (arrayOffset + capacity > backingArray.length) { in ByteArrayBuffer()
47 … ", capacity=" + capacity + ", arrayOffset=" + arrayOffset); in ByteArrayBuffer()
52 …fer buf = new ByteArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); in copy()
67 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact()
79 return new ByteArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice()
97 return arrayOffset; in protectedArrayOffset()
109 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, byteCount); in get()
[all …]
DNIOAccess.java53 return b.hasArray() ? ((b.arrayOffset() + b.position) << b._elementSizeShift) : 0; in getBaseArrayOffset()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetDecoderICU.java170 outEnd = out.arrayOffset() + out.limit(); in getArray()
171 return out.arrayOffset() + out.position(); in getArray()
186 inEnd = in.arrayOffset() + in.limit(); in getArray()
187 return in.arrayOffset() + in.position(); in getArray()
205 out.position(out.position() + data[OUTPUT_OFFSET] - out.arrayOffset()); in setPosition()
DCharsetEncoderICU.java199 outEnd = out.arrayOffset() + out.limit(); in getArray()
200 return out.arrayOffset() + out.position(); in getArray()
215 inEnd = in.arrayOffset() + in.limit(); in getArray()
216 return in.arrayOffset() + in.position(); in getArray()
234 out.position(data[OUTPUT_OFFSET] - out.arrayOffset()); in setPosition()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DIntBufferTest.java52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DDoubleBufferTest.java76 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
78 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
79 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
81 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
82 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
85 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
88 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
93 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
95 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
96 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DFloatBufferTest.java52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DLongBufferTest.java52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DShortBufferTest.java51 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
53 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
54 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
56 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
57 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
60 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
63 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
68 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
70 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
71 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DCharBufferTest.java55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
57 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
60 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
67 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
74 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
75 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DDirectDoubleBufferTest.java47 buf.arrayOffset(); in testArrayOffset()
DDirectIntBufferTest.java47 buf.arrayOffset(); in testArrayOffset()
DDirectShortBufferTest.java47 buf.arrayOffset(); in testArrayOffset()
DDirectCharBufferTest.java48 buf.arrayOffset(); in testArrayOffset()
DDirectFloatBufferTest.java47 buf.arrayOffset(); in testArrayOffset()
DDirectLongBufferTest.java48 buf.arrayOffset(); in testArrayOffset()
/libcore/luni/src/main/java/javax/crypto/
DCipherSpi.java348 int offset = input.arrayOffset(); in engineUpdate()
422 int offset = input.arrayOffset(); in engineUpdateAAD()
534 int offset = input.arrayOffset(); in engineDoFinal()
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DChunk.java60 this.offset = buf.arrayOffset(); in Chunk()
/libcore/luni/src/test/java/libcore/java/nio/
DNoArrayTest.java40 buf.arrayOffset(); in assertNoArray()

12