/libcore/luni/src/main/java/java/nio/ |
D | MemoryBlock.java | 205 public final void peekByteArray(int offset, byte[] dst, int dstOffset, int byteCount) { in peekByteArray() argument 206 Memory.peekByteArray(address + offset, dst, dstOffset, byteCount); in peekByteArray() 209 …public final void peekCharArray(int offset, char[] dst, int dstOffset, int charCount, boolean swap… in peekCharArray() argument 210 Memory.peekCharArray(address + offset, dst, dstOffset, charCount, swap); in peekCharArray() 213 …public final void peekDoubleArray(int offset, double[] dst, int dstOffset, int doubleCount, boolea… in peekDoubleArray() argument 214 Memory.peekDoubleArray(address + offset, dst, dstOffset, doubleCount, swap); in peekDoubleArray() 217 …public final void peekFloatArray(int offset, float[] dst, int dstOffset, int floatCount, boolean s… in peekFloatArray() argument 218 Memory.peekFloatArray(address + offset, dst, dstOffset, floatCount, swap); in peekFloatArray() 221 … public final void peekIntArray(int offset, int[] dst, int dstOffset, int intCount, boolean swap) { in peekIntArray() argument 222 Memory.peekIntArray(address + offset, dst, dstOffset, intCount, swap); in peekIntArray() [all …]
|
D | ByteArrayBuffer.java | 107 @Override public final ByteBuffer get(byte[] dst, int dstOffset, int byteCount) { in get() argument 108 checkGetBounds(1, dst.length, dstOffset, byteCount); in get() 109 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, byteCount); in get() 114 final void get(char[] dst, int dstOffset, int charCount) { in get() argument 115 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount); in get() 116 …Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, arrayOffset + position, SizeOf.CHAR,… in get() 120 final void get(double[] dst, int dstOffset, int doubleCount) { in get() argument 121 int byteCount = checkGetBounds(SizeOf.DOUBLE, dst.length, dstOffset, doubleCount); in get() 122 …Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, arrayOffset + position, SizeOf.DOUBL… in get() 126 final void get(float[] dst, int dstOffset, int floatCount) { in get() argument [all …]
|
D | DirectByteBuffer.java | 111 @Override public final ByteBuffer get(byte[] dst, int dstOffset, int byteCount) { in get() argument 113 checkGetBounds(1, dst.length, dstOffset, byteCount); in get() 114 this.block.peekByteArray(offset + position, dst, dstOffset, byteCount); in get() 119 final void get(char[] dst, int dstOffset, int charCount) { in get() argument 121 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount); in get() 122 this.block.peekCharArray(offset + position, dst, dstOffset, charCount, order.needsSwap); in get() 126 final void get(double[] dst, int dstOffset, int doubleCount) { in get() argument 128 int byteCount = checkGetBounds(SizeOf.DOUBLE, dst.length, dstOffset, doubleCount); in get() 129 this.block.peekDoubleArray(offset + position, dst, dstOffset, doubleCount, order.needsSwap); in get() 133 final void get(float[] dst, int dstOffset, int floatCount) { in get() argument [all …]
|
D | ByteBuffer.java | 396 public ByteBuffer get(byte[] dst, int dstOffset, int byteCount) { in get() argument 397 Arrays.checkOffsetAndCount(dst.length, dstOffset, byteCount); in get() 401 for (int i = dstOffset; i < dstOffset + byteCount; ++i) { in get() 798 int dstOffset = dst.position(); in put() local 800 dstOffset += NioUtils.unsafeArrayOffset(dst); in put() 803 Memory.memmove(dstObject, dstOffset, srcObject, srcOffset, srcByteCount); in put()
|
D | LongBuffer.java | 256 public LongBuffer get(long[] dst, int dstOffset, int longCount) { in get() argument 257 Arrays.checkOffsetAndCount(dst.length, dstOffset, longCount); in get() 261 for (int i = dstOffset; i < dstOffset + longCount; ++i) { in get()
|
D | ShortBuffer.java | 257 public ShortBuffer get(short[] dst, int dstOffset, int shortCount) { in get() argument 258 Arrays.checkOffsetAndCount(dst.length, dstOffset, shortCount); in get() 262 for (int i = dstOffset; i < dstOffset + shortCount; ++i) { in get()
|
D | IntBuffer.java | 254 public IntBuffer get(int[] dst, int dstOffset, int intCount) { in get() argument 255 Arrays.checkOffsetAndCount(dst.length, dstOffset, intCount); in get() 259 for (int i = dstOffset; i < dstOffset + intCount; ++i) { in get()
|
D | CharSequenceAdapter.java | 79 public final CharBuffer get(char[] dst, int dstOffset, int charCount) { in get() argument 80 Arrays.checkOffsetAndCount(dst.length, dstOffset, charCount); in get() 85 sequence.toString().getChars(position, newPosition, dst, dstOffset); in get()
|
D | DoubleBuffer.java | 267 public DoubleBuffer get(double[] dst, int dstOffset, int doubleCount) { in get() argument 268 Arrays.checkOffsetAndCount(dst.length, dstOffset, doubleCount); in get() 272 for (int i = dstOffset; i < dstOffset + doubleCount; ++i) { in get()
|
D | FloatBuffer.java | 268 public FloatBuffer get(float[] dst, int dstOffset, int floatCount) { in get() argument 269 Arrays.checkOffsetAndCount(dst.length, dstOffset, floatCount); in get() 273 for (int i = dstOffset; i < dstOffset + floatCount; ++i) { in get()
|
D | ByteBufferAsShortBuffer.java | 99 public ShortBuffer get(short[] dst, int dstOffset, int shortCount) { in get() argument 103 ((DirectByteBuffer) byteBuffer).get(dst, dstOffset, shortCount); in get() 105 ((ByteArrayBuffer) byteBuffer).get(dst, dstOffset, shortCount); in get()
|
D | ByteBufferAsIntBuffer.java | 100 public IntBuffer get(int[] dst, int dstOffset, int intCount) { in get() argument 104 ((DirectByteBuffer) byteBuffer).get(dst, dstOffset, intCount); in get() 106 ((ByteArrayBuffer) byteBuffer).get(dst, dstOffset, intCount); in get()
|
D | ByteBufferAsFloatBuffer.java | 99 public FloatBuffer get(float[] dst, int dstOffset, int floatCount) { in get() argument 103 ((DirectByteBuffer) byteBuffer).get(dst, dstOffset, floatCount); in get() 105 ((ByteArrayBuffer) byteBuffer).get(dst, dstOffset, floatCount); in get()
|
D | ByteBufferAsLongBuffer.java | 100 public LongBuffer get(long[] dst, int dstOffset, int longCount) { in get() argument 104 ((DirectByteBuffer) byteBuffer).get(dst, dstOffset, longCount); in get() 106 ((ByteArrayBuffer) byteBuffer).get(dst, dstOffset, longCount); in get()
|
D | ByteBufferAsDoubleBuffer.java | 100 public DoubleBuffer get(double[] dst, int dstOffset, int doubleCount) { in get() argument 104 ((DirectByteBuffer) byteBuffer).get(dst, dstOffset, doubleCount); in get() 106 ((ByteArrayBuffer) byteBuffer).get(dst, dstOffset, doubleCount); in get()
|
D | ByteBufferAsCharBuffer.java | 100 public CharBuffer get(char[] dst, int dstOffset, int charCount) { in get() argument 104 ((DirectByteBuffer) byteBuffer).get(dst, dstOffset, charCount); in get() 106 ((ByteArrayBuffer) byteBuffer).get(dst, dstOffset, charCount); in get()
|
D | CharBuffer.java | 313 public CharBuffer get(char[] dst, int dstOffset, int charCount) { in get() argument 314 Arrays.checkOffsetAndCount(dst.length, dstOffset, charCount); in get() 318 for (int i = dstOffset; i < dstOffset + charCount; ++i) { in get()
|
D | LongArrayBuffer.java | 110 @Override public final LongBuffer get(long[] dst, int dstOffset, int longCount) { in get() argument 114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, longCount); in get()
|
D | FloatArrayBuffer.java | 111 @Override public final FloatBuffer get(float[] dst, int dstOffset, int floatCount) { in get() argument 115 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, floatCount); in get()
|
D | DoubleArrayBuffer.java | 110 @Override public final DoubleBuffer get(double[] dst, int dstOffset, int doubleCount) { in get() argument 114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, doubleCount); in get()
|
/libcore/luni/src/main/java/libcore/io/ |
D | NioBufferIterator.java | 48 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { in readByteArray() argument 49 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); in readByteArray() 65 public void readIntArray(int[] dst, int dstOffset, int intCount) { in readIntArray() argument 66 Memory.peekIntArray(address + position, dst, dstOffset, intCount, swap); in readIntArray()
|
D | Memory.java | 35 public static native void unsafeBulkGet(Object dst, int dstOffset, int byteCount, in unsafeBulkGet() argument 42 public static native void unsafeBulkPut(byte[] dst, int dstOffset, int byteCount, in unsafeBulkPut() argument 151 …public static native void memmove(Object dstObject, int dstOffset, Object srcObject, int srcOffset… in memmove() argument 182 public static native void peekByteArray(long address, byte[] dst, int dstOffset, int byteCount); in peekByteArray() argument 183 …public static native void peekCharArray(long address, char[] dst, int dstOffset, int charCount, bo… in peekCharArray() argument 184 …public static native void peekDoubleArray(long address, double[] dst, int dstOffset, int doubleCou… in peekDoubleArray() argument 185 …public static native void peekFloatArray(long address, float[] dst, int dstOffset, int floatCount,… in peekFloatArray() argument 186 …public static native void peekIntArray(long address, int[] dst, int dstOffset, int intCount, boole… in peekIntArray() argument 187 …public static native void peekLongArray(long address, long[] dst, int dstOffset, int longCount, bo… in peekLongArray() argument 188 …public static native void peekShortArray(long address, short[] dst, int dstOffset, int shortCount,… in peekShortArray() argument
|
D | HeapBufferIterator.java | 50 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { in readByteArray() argument 51 System.arraycopy(buffer, offset + position, dst, dstOffset, byteCount); in readByteArray() 67 public void readIntArray(int[] dst, int dstOffset, int intCount) { in readIntArray() argument 69 …Memory.unsafeBulkGet(dst, dstOffset, byteCount, buffer, offset + position, SizeOf.INT, order.needs… in readIntArray()
|
D | BufferIterator.java | 40 public abstract void readByteArray(byte[] dst, int dstOffset, int byteCount); in readByteArray() argument 56 public abstract void readIntArray(int[] dst, int dstOffset, int intCount); in readIntArray() argument
|
/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 145 static void Memory_memmove(JNIEnv* env, jclass, jobject dstObject, jint dstOffset, jobject srcObjec… in Memory_memmove() argument 154 memmove(dstBytes.get() + dstOffset, srcBytes.get() + srcOffset, length); in Memory_memmove() 161 …ekByteArray(JNIEnv* env, jclass, jlong srcAddress, jbyteArray dst, jint dstOffset, jint byteCount)… in Memory_peekByteArray() argument 162 env->SetByteArrayRegion(dst, dstOffset, byteCount, cast<const jbyte*>(srcAddress)); in Memory_peekByteArray() 179 SWAP_FN(reinterpret_cast<SWAP_TYPE*>(elements.get()) + dstOffset, src, count); \ 182 env->Set ## JNI_NAME ## ArrayRegion(dst, dstOffset, count, src); \ 186 …ekCharArray(JNIEnv* env, jclass, jlong srcAddress, jcharArray dst, jint dstOffset, jint count, jbo… in Memory_peekCharArray() argument 190 …ubleArray(JNIEnv* env, jclass, jlong srcAddress, jdoubleArray dst, jint dstOffset, jint count, jbo… in Memory_peekDoubleArray() argument 194 …FloatArray(JNIEnv* env, jclass, jlong srcAddress, jfloatArray dst, jint dstOffset, jint count, jbo… in Memory_peekFloatArray() argument 198 …peekIntArray(JNIEnv* env, jclass, jlong srcAddress, jintArray dst, jint dstOffset, jint count, jbo… in Memory_peekIntArray() argument [all …]
|