/libcore/luni/src/test/java/libcore/libcore/io/ |
D | MemoryTest.java | 24 import libcore.io.Memory; 44 Memory.pokeIntArray(ptr, values, 0, values.length, false); in testSetIntArray() 49 Memory.pokeIntArray(ptr, values, 0, values.length, true); in testSetIntArray() 55 Memory.pokeIntArray(ptr + i * scale, values, i, 1, true); in testSetIntArray() 64 assertEquals(expectedValues[i], Memory.peekInt(ptr + Integer.BYTES * i, swap)); in assertIntsEqual() 85 Memory.pokeLongArray(ptr, values, 0, values.length, false); in testSetLongArray() 90 Memory.pokeLongArray(ptr, values, 0, values.length, true); in testSetLongArray() 96 Memory.pokeLongArray(ptr + i * scale, values, i, 1, true); in testSetLongArray() 105 assertEquals(expectedValues[i], Memory.peekLong(ptr + Long.BYTES * i, swap)); in assertLongsEqual() 123 Memory.pokeShortArray(ptr, values, 0, values.length, false); in testSetShortArray() [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 242 NATIVE_METHOD(Memory, memmove, "(Ljava/lang/Object;ILjava/lang/Object;IJ)V"), 243 FAST_NATIVE_METHOD(Memory, peekByte, "(J)B"), 244 FAST_NATIVE_METHOD(Memory, peekIntNative, "(J)I"), 245 FAST_NATIVE_METHOD(Memory, peekLongNative, "(J)J"), 246 FAST_NATIVE_METHOD(Memory, peekShortNative, "(J)S"), 247 FAST_NATIVE_METHOD(Memory, pokeByte, "(JB)V"), 248 NATIVE_METHOD(Memory, pokeByteArray, "(J[BII)V"), 249 NATIVE_METHOD(Memory, pokeCharArray, "(J[CIIZ)V"), 250 NATIVE_METHOD(Memory, pokeDoubleArray, "(J[DIIZ)V"), 251 NATIVE_METHOD(Memory, pokeFloatArray, "(J[FIIZ)V"), [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | DirectByteBuffer.java | 35 import libcore.io.Memory; 237 return Memory.peekByte(a); in get() 269 Memory.peekByteArray(ix(pos), in get() 276 Memory.pokeByte(a, x); in put() 328 Memory.pokeByteArray(ix(pos), in put() 386 char x = (char) Memory.peekShort(ix(position), !nativeByteOrder); in getChar() 397 return (char) Memory.peekShort(ix(i), !nativeByteOrder); in getChar() 405 return (char) Memory.peekShort(ix(i), !nativeByteOrder); in getCharUnchecked() 413 Memory.peekCharArray(ix(pos), in getUnchecked() 418 Memory.pokeShort(a, (short) x, !nativeByteOrder); in putChar() [all …]
|
D | HeapByteBuffer.java | 33 import libcore.io.Memory; 482 Memory.unsafeBulkGet(dst, dstOffset, length * 2, hb, ix(pos), 2, !nativeByteOrder); in getUnchecked() 508 Memory.unsafeBulkPut(hb, ix(pos), length * 2, src, srcOffset, 2, !nativeByteOrder); in putUnchecked() 572 Memory.unsafeBulkGet(dst, dstOffset, length * 2, hb, ix(pos), 2, !nativeByteOrder); in getUnchecked() 610 Memory.unsafeBulkPut(hb, ix(pos), length * 2, src, srcOffset, 2, !nativeByteOrder); in putUnchecked() 674 Memory.unsafeBulkGet(dst, dstOffset, length * 4, hb, ix(pos), 4, !nativeByteOrder); in getUnchecked() 714 Memory.unsafeBulkPut(hb, ix(pos), length * 4, src, srcOffset, 4, !nativeByteOrder); in putUnchecked() 777 Memory.unsafeBulkGet(dst, dstOffset, length * 8, hb, ix(pos), 8, !nativeByteOrder); in getUnchecked() 817 Memory.unsafeBulkPut(hb, ix(pos), length * 8, src, srcOffset, 8, !nativeByteOrder); in putUnchecked() 883 Memory.unsafeBulkGet(dst, dstOffset, length * 4, hb, ix(pos), 4, !nativeByteOrder); in getUnchecked() [all …]
|
D | ByteBufferAsDoubleBuffer.java | 33 import libcore.io.Memory; 305 Memory.memmove(this, 0, this, pos << 3, rem << 3); in compact()
|
D | ByteBufferAsLongBuffer.java | 33 import libcore.io.Memory; 305 Memory.memmove(this, 0, this, pos << 3, rem << 3); in compact()
|
D | ByteBufferAsIntBuffer.java | 33 import libcore.io.Memory; 305 Memory.memmove(this, 0, this, pos << 2, rem << 2); in compact()
|
D | ByteBufferAsShortBuffer.java | 33 import libcore.io.Memory; 305 Memory.memmove(this, 0, this, pos << 1, rem << 1); in compact()
|
D | ByteBufferAsFloatBuffer.java | 33 import libcore.io.Memory; 305 Memory.memmove(this, 0, this, pos << 2, rem << 2); in compact()
|
D | ByteBufferAsCharBuffer.java | 33 import libcore.io.Memory; 305 Memory.memmove(this, 0, this, pos << 1, rem << 1); in compact()
|
D | Heap-X-Buffer.java.template | 33 import libcore.io.Memory; 316 // Android-note: The super class speed-up this operation with Memory.memmove, and arraycopy. 482 Memory.unsafeBulkGet(dst, dstOffset, length * 2, hb, ix(pos), 2, !nativeByteOrder); 508 Memory.unsafeBulkPut(hb, ix(pos), length * 2, src, srcOffset, 2, !nativeByteOrder); 572 Memory.unsafeBulkGet(dst, dstOffset, length * 2, hb, ix(pos), 2, !nativeByteOrder); 610 Memory.unsafeBulkPut(hb, ix(pos), length * 2, src, srcOffset, 2, !nativeByteOrder); 674 Memory.unsafeBulkGet(dst, dstOffset, length * 4, hb, ix(pos), 4, !nativeByteOrder); 714 Memory.unsafeBulkPut(hb, ix(pos), length * 4, src, srcOffset, 4, !nativeByteOrder); 777 Memory.unsafeBulkGet(dst, dstOffset, length * 8, hb, ix(pos), 8, !nativeByteOrder); 817 Memory.unsafeBulkPut(hb, ix(pos), length * 8, src, srcOffset, 8, !nativeByteOrder); [all …]
|
D | ByteBuffer.java | 45 import libcore.io.Memory; 1175 Memory.memmove(dstObject, dstOffset, srcObject, srcOffset, n); in putBuffer()
|
D | HeapIntBuffer.java | 33 import libcore.io.Memory;
|
D | HeapFloatBuffer.java | 33 import libcore.io.Memory;
|
D | HeapShortBuffer.java | 33 import libcore.io.Memory;
|
D | HeapLongBuffer.java | 33 import libcore.io.Memory;
|
D | HeapDoubleBuffer.java | 33 import libcore.io.Memory;
|
D | HeapCharBuffer.java | 33 import libcore.io.Memory;
|
D | ByteBufferAs-X-Buffer.java.template | 33 import libcore.io.Memory; 305 Memory.memmove(this, 0, this, pos << $LG_BYTES_PER_VALUE$, rem << $LG_BYTES_PER_VALUE$);
|
D | FloatBuffer.java | 45 import libcore.io.Memory;
|
/libcore/luni/src/main/java/libcore/io/ |
D | NioBufferIterator.java | 73 Memory.peekByteArray(address + position, bytes, arrayOffset, byteCount); in readByteArray() 81 byte result = Memory.peekByte(address + position); in readByte() 90 int result = Memory.peekInt(address + position, swap); in readInt() 101 Memory.peekIntArray(address + position, ints, arrayOffset, intCount, swap); in readIntArray() 111 Memory.peekLongArray(address + position, longs, arrayOffset, longCount, swap); in readLongArray() 119 short result = Memory.peekShort(address + position, swap); in readShort()
|
D | Memory.java | 37 public final class Memory { class 38 private Memory() { } in Memory() method in Memory
|
/libcore/ojluni/src/main/java/java/io/ |
D | DataInputStream.java | 29 import libcore.io.Memory; 323 return Memory.peekShort(readBuffer, 0, ByteOrder.BIG_ENDIAN); in readShort() 347 return Memory.peekShort(readBuffer, 0, ByteOrder.BIG_ENDIAN) & 0xffff; in readUnsignedShort() 371 return (char)Memory.peekShort(readBuffer, 0, ByteOrder.BIG_ENDIAN); in readChar() 395 return Memory.peekInt(readBuffer, 0, ByteOrder.BIG_ENDIAN); in readInt()
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | genCopyDirectMemory.sh | 31 out=CopyDirect$2Memory.java 33 …java build.tools.spp.Spp -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3 -iCopyDirect-X-Memory.java.templa…
|
D | CopyDirect-X-Memory.java.template | 29 public class CopyDirect$Type$Memory
|