Searched refs:dst (Results 1 - 25 of 98) sorted by relevance

1234

/libcore/benchmarks/src/benchmarks/
H A DArrayCopyBenchmark.java25 char[] dst = new char[8192];
27 dst[i] = src[i];
35 char[] dst = new char[8192];
36 System.arraycopy(src, 0, dst, 0, 8192);
43 char[] dst = Arrays.copyOf(src, 8192);
50 char[] dst = Arrays.copyOfRange(src, 0, 8192);
H A DSystemArrayCopyBenchmark.java31 char[] dst = new char[len];
33 System.arraycopy(src, 0, dst, 0, len);
40 byte[] dst = new byte[len];
42 System.arraycopy(src, 0, dst, 0, len);
49 short[] dst = new short[len];
51 System.arraycopy(src, 0, dst, 0, len);
58 int[] dst = new int[len];
60 System.arraycopy(src, 0, dst, 0, len);
67 long[] dst = new long[len];
69 System.arraycopy(src, 0, dst,
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DBufferIterator.java43 * Copies {@code byteCount} bytes from the current position into {@code dst}, starting at
48 public abstract void readByteArray(byte[] dst, int dstOffset, int byteCount); argument
65 * Copies {@code intCount} 32-bit ints from the current position into {@code dst}, starting at
70 public abstract void readIntArray(int[] dst, int dstOffset, int intCount); argument
H A DMemory.java33 * Used to optimize nio heap buffer bulk get operations. 'dst' must be a primitive array.
36 public static native void unsafeBulkGet(Object dst, int dstOffset, int byteCount, argument
43 public static native void unsafeBulkPut(byte[] dst, int dstOffset, int byteCount, argument
92 public static void pokeInt(byte[] dst, int offset, int value, ByteOrder order) { argument
94 dst[offset++] = (byte) ((value >> 24) & 0xff);
95 dst[offset++] = (byte) ((value >> 16) & 0xff);
96 dst[offset++] = (byte) ((value >> 8) & 0xff);
97 dst[offset ] = (byte) ((value >> 0) & 0xff);
99 dst[offset++] = (byte) ((value >> 0) & 0xff);
100 dst[offse
106 pokeLong(byte[] dst, int offset, long value, ByteOrder order) argument
132 pokeShort(byte[] dst, int offset, short value, ByteOrder order) argument
187 peekByteArray(long address, byte[] dst, int dstOffset, int byteCount) argument
188 peekCharArray(long address, char[] dst, int dstOffset, int charCount, boolean swap) argument
189 peekDoubleArray(long address, double[] dst, int dstOffset, int doubleCount, boolean swap) argument
190 peekFloatArray(long address, float[] dst, int dstOffset, int floatCount, boolean swap) argument
191 peekIntArray(long address, int[] dst, int dstOffset, int intCount, boolean swap) argument
192 peekLongArray(long address, long[] dst, int dstOffset, int longCount, boolean swap) argument
193 peekShortArray(long address, short[] dst, int dstOffset, int shortCount, boolean swap) argument
[all...]
H A DNioBufferIterator.java66 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { argument
67 checkDstBounds(dstOffset, dst.length, byteCount);
70 Memory.peekByteArray(address + position, dst, dstOffset, byteCount);
90 public void readIntArray(int[] dst, int dstOffset, int intCount) { argument
91 checkDstBounds(dstOffset, dst.length, intCount);
95 Memory.peekIntArray(address + position, dst, dstOffset, intCount, swap);
124 "Invalid dst args: offset=" + dstLength + ", count=" + count);
131 "Write outside range: dst.length=" + dstLength + ", offset="
/libcore/ojluni/src/main/java/sun/nio/cs/
H A DArrayDecoder.java34 int decode(byte[] src, int off, int len, char[] dst); argument
H A DArrayEncoder.java34 int encode(char[] src, int off, int len, byte[] dst); argument
/libcore/dom/src/test/java/org/w3c/domts/
H A DUserDataNotification.java26 private final Node dst; field in class:UserDataNotification
36 Node dst) {
41 this.dst = dst;
81 * Gets value of dst parameter
83 * @return value of dst parameter
86 return dst;
32 UserDataNotification(short operation, String key, Object data, Node src, Node dst) argument
H A DUserDataMonitor.java47 * @param dst
55 Node dst) {
57 new UserDataNotification(operation, key, data, src, dst));
50 handle( short operation, String key, Object data, Node src, Node dst) argument
/libcore/benchmarks/src/benchmarks/regression/
H A DByteBufferScalarVersusVectorBenchmark.java29 ByteBuffer dst = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType);
32 dst.position(0);
34 dst.put(src.get());
41 byte[] dst = new byte[8192];
44 src.get(dst, 0, dst.length);
50 byte[] dst = new byte[8192];
53 src.get(dst, 0, dst.length);
H A DByteBufferBenchmark.java96 byte[] dst = new byte[1024];
100 src.get(dst);
127 char[] dst = new char[1024];
131 src.get(dst);
158 double[] dst = new double[1024];
162 src.get(dst);
179 float[] dst = new float[1024];
183 src.get(dst);
200 int[] dst = new int[1024];
204 src.get(dst);
[all...]
/libcore/luni/src/main/java/org/w3c/dom/
H A DUserDataHandler.java63 * @param dst Specifies the node newly created if any, or
70 Node dst);
66 handle(short operation, String key, Object data, Node src, Node dst) argument
/libcore/ojluni/src/main/java/java/nio/channels/
H A DReadableByteChannel.java55 * <tt>dst.remaining()</tt>, at the moment this method is invoked.
81 * @param dst
106 public int read(ByteBuffer dst) throws IOException; argument
H A DAsynchronousByteChannel.java68 * {@code dst.remaining()} at the time that the read is attempted. Where
92 * @param dst
108 <A> void read(ByteBuffer dst, argument
125 * @param dst
136 Future<Integer> read(ByteBuffer dst); argument
H A DSeekableByteChannel.java65 int read(ByteBuffer dst) throws IOException; argument
/libcore/luni/src/test/native/
H A Dlibcore_io_Memory_test.cpp30 uint8_t* dst = nullptr; local
32 ASSERT_EQ(0, posix_memalign(reinterpret_cast<void**>(&dst), ALIGNMENT,
45 T* dst_aligned = reinterpret_cast<T*>(&dst[dst_align]);
52 << "Failed at dst align " << dst_align << " src align " << src_align;
55 free(dst);
62 swap_align_test<jshort, 9> (swapShorts, [] (jshort* src, jshort* dst, uint64_t i) {
64 *dst = (2*i) | ((2*(i+1)) << 8);
69 swap_align_test<jint, 10> (swapInts, [] (jint* src, jint* dst, uint64_t i) {
71 *dst = (4*i) | ((4*(i+1)) << 8) | ((4*(i+2)) << 16) | ((4*(i+3)) << 24);
76 swap_align_test<jlong, 10> (swapLongs, [] (jlong* src, jlong* dst, uint64_
112 T* dst = nullptr; local
[all...]
/libcore/luni/src/main/java/java/nio/charset/
H A DModifiedUtf8.java63 * Encode {@code s} into {@code dst} starting at offset {@code offset}.
67 public static void encode(byte[] dst, int offset, String s) { argument
73 dst[offset++] = (byte) 0xc0;
74 dst[offset++] = (byte) 0x80;
76 dst[offset++] = (byte) c;
79 dst[offset++] = (byte) ((c >>> 6) | 0xc0);
80 dst[offset++] = (byte) ((c & 0x3f) | 0x80);
82 dst[offset++] = (byte) ((c >>> 12) | 0xe0);
83 dst[offset++] = (byte) (((c >>> 6) & 0x3f) | 0x80);
84 dst[offse
[all...]
/libcore/ojluni/src/main/java/java/nio/
H A DByteBuffer.java492 * <tt>src.get(dst,&nbsp;off,&nbsp;len)</tt> has exactly the same effect as
497 * dst[i] = src.get();
503 * @param dst
509 * <tt>dst.length</tt>
514 * <tt>dst.length - offset</tt>
526 public ByteBuffer get(byte[] dst, int offset, int length) { argument
527 checkBounds(offset, length, dst.length);
532 dst[i] = get();
546 * @param dst
555 public ByteBuffer get(byte[] dst) { argument
1093 getUnchecked(int pos, char[] dst, int dstOffset, int length) argument
1126 putUnchecked(int pos, char[] dst, int srcOffset, int length) argument
1208 getUnchecked(int pos, short[] dst, int dstOffset, int length) argument
1241 putUnchecked(int pos, short[] dst, int srcOffset, int length) argument
1323 getUnchecked(int pos, int[] dst, int dstOffset, int length) argument
1356 putUnchecked(int pos, int[] dst, int srcOffset, int length) argument
1438 getUnchecked(int pos, long[] dst, int dstOffset, int length) argument
1471 putUnchecked(int pos, long[] dst, int srcOffset, int length) argument
1553 getUnchecked(int pos, float[] dst, int dstOffset, int length) argument
1586 putUnchecked(int pos, float[] dst, int srcOffset, int length) argument
1668 getUnchecked(int pos, double[] dst, int dstOffset, int length) argument
1701 putUnchecked(int pos, double[] dst, int srcOffset, int length) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DBase64.java261 int len = outLength(src.length); // dst array size
262 byte[] dst = new byte[len];
263 int ret = encode0(src, 0, src.length, dst);
264 if (ret != dst.length)
265 return Arrays.copyOf(dst, ret);
266 return dst;
275 * sure the output byte array {@code dst} has enough space for encoding
281 * @param dst
285 * @throws IllegalArgumentException if {@code dst} does not have enough
288 public int encode(byte[] src, byte[] dst) { argument
391 encode0(byte[] src, int off, int end, byte[] dst) argument
577 decode(byte[] src, byte[] dst) argument
688 decode0(byte[] src, int sp, int sl, byte[] dst) argument
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DSystem.java459 private static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) { argument
463 if (dst == null) {
464 throw new NullPointerException("dst == null");
467 srcPos > src.length - length || dstPos > dst.length - length) {
470 " dst.length=" + dst.length + " dstPos=" + dstPos + " length=" + length);
474 if (src == dst && srcPos < dstPos && dstPos < srcPos + length) {
479 dst[dstPos + i] = src[srcPos + i];
484 dst[dstPos + i] = src[srcPos + i];
489 arraycopyCharUnchecked(src, srcPos, dst, dstPo
498 arraycopyCharUnchecked(char[] src, int srcPos, char[] dst, int dstPos, int length) argument
518 arraycopy(byte[] src, int srcPos, byte[] dst, int dstPos, int length) argument
557 arraycopyByteUnchecked(byte[] src, int srcPos, byte[] dst, int dstPos, int length) argument
573 arraycopy(short[] src, int srcPos, short[] dst, int dstPos, int length) argument
612 arraycopyShortUnchecked(short[] src, int srcPos, short[] dst, int dstPos, int length) argument
628 arraycopy(int[] src, int srcPos, int[] dst, int dstPos, int length) argument
667 arraycopyIntUnchecked(int[] src, int srcPos, int[] dst, int dstPos, int length) argument
683 arraycopy(long[] src, int srcPos, long[] dst, int dstPos, int length) argument
722 arraycopyLongUnchecked(long[] src, int srcPos, long[] dst, int dstPos, int length) argument
738 arraycopy(float[] src, int srcPos, float[] dst, int dstPos, int length) argument
777 arraycopyFloatUnchecked(float[] src, int srcPos, float[] dst, int dstPos, int length) argument
793 arraycopy(double[] src, int srcPos, double[] dst, int dstPos, int length) argument
832 arraycopyDoubleUnchecked(double[] src, int srcPos, double[] dst, int dstPos, int length) argument
848 arraycopy(boolean[] src, int srcPos, boolean[] dst, int dstPos, int length) argument
887 arraycopyBooleanUnchecked(boolean[] src, int srcPos, boolean[] dst, int dstPos, int length) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/util/
H A DIPAddressUtil.java143 byte[] dst = new byte[INADDR16SZ];
187 dst[j++] = (byte) ((val >> 8) & 0xff);
188 dst[j++] = (byte) (val & 0xff);
209 dst[j++] = v4addr[k];
219 dst[j++] = (byte) ((val >> 8) & 0xff);
220 dst[j++] = (byte) (val & 0xff);
229 dst[INADDR16SZ - i] = dst[colonp + n - i];
230 dst[colonp + n - i] = 0;
236 byte[] newdst = convertFromIPv4MappedAddress(dst);
[all...]
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DSSLEngine.java215 * SSLEngineResult r = engine.unwrap(src, dst);
218 * // Could attempt to drain the dst buffer of any already obtained
221 * ByteBuffer b = ByteBuffer.allocate(appSize + dst.position());
222 * dst.flip();
223 * b.put(dst);
224 * dst = b;
230 * if (netSize > dst.capacity()) {
351 * sslEngine.wrap(src, dst);
352 * outboundQueue.put(dst);
1090 * engine.wrap(new ByteBuffer [] { src }, 0, 1, dst);}
1113 wrap(ByteBuffer src, ByteBuffer dst) argument
1150 wrap(ByteBuffer [] srcs, ByteBuffer dst) argument
1234 wrap(ByteBuffer [] srcs, int offset, int length, ByteBuffer dst) argument
1268 unwrap(ByteBuffer src, ByteBuffer dst) argument
[all...]
/libcore/ojluni/src/main/native/
H A DObjectInputStream.c45 * float values are written to array dst starting at dstpos.
52 jfloatArray dst,
78 if (dst == NULL) {
83 floats = (*env)->GetPrimitiveArrayCritical(env, dst, NULL);
102 (*env)->ReleasePrimitiveArrayCritical(env, dst, floats, 0);
112 * resulting double values are written to array dst starting at dstpos.
119 jdoubleArray dst,
146 if (dst == NULL) {
151 doubles = (*env)->GetPrimitiveArrayCritical(env, dst, NULL);
175 (*env)->ReleasePrimitiveArrayCritical(env, dst, double
48 Java_java_io_ObjectInputStream_bytesToFloats(JNIEnv *env, jclass this, jbyteArray src, jint srcpos, jfloatArray dst, jint dstpos, jint nfloats) argument
115 Java_java_io_ObjectInputStream_bytesToDoubles(JNIEnv *env, jclass this, jbyteArray src, jint srcpos, jdoubleArray dst, jint dstpos, jint ndoubles) argument
[all...]
H A DObjectOutputStream.c44 * dst starting at offset dstpos.
51 jbyteArray dst,
78 if (dst == NULL) {
83 bytes = (*env)->GetPrimitiveArrayCritical(env, dst, NULL);
106 (*env)->ReleasePrimitiveArrayCritical(env, dst, bytes, 0);
116 * array dst starting at offset dstpos.
123 jbyteArray dst,
150 if (dst == NULL) {
155 bytes = (*env)->GetPrimitiveArrayCritical(env, dst, NULL);
184 (*env)->ReleasePrimitiveArrayCritical(env, dst, byte
47 Java_java_io_ObjectOutputStream_floatsToBytes(JNIEnv *env, jclass this, jfloatArray src, jint srcpos, jbyteArray dst, jint dstpos, jint nfloats) argument
119 Java_java_io_ObjectOutputStream_doublesToBytes(JNIEnv *env, jclass this, jdoubleArray src, jint srcpos, jbyteArray dst, jint dstpos, jint ndoubles) argument
[all...]
/libcore/luni/src/test/java/libcore/libcore/io/
H A DMemoryMappedFileTest.java407 int[] dst = new int[2];
411 assertReadIntArrayFails(iterator, dst, 0, 1);
415 assertReadIntArrayFails(iterator, dst, 0, 1);
419 assertReadIntArrayFails(iterator, dst, 0, 1);
423 assertReadIntArrayFails(iterator, dst, 0, 1);
425 // dst too small.
426 assertReadIntArrayFails(iterator, dst, 0, 3); // dst can only hold 2 ints
428 // offset leaves dst too small.
429 assertReadIntArrayFails(iterator, dst,
519 assertReadByteArrayFails( BufferIterator iterator, byte[] dst, int offset, int intCount) argument
556 assertReadIntArrayFails( BufferIterator iterator, int[] dst, int offset, int intCount) argument
[all...]

Completed in 795 milliseconds

1234