/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 | 293 NATIVE_METHOD(Memory, memmove, "(Ljava/lang/Object;ILjava/lang/Object;IJ)V"), 294 FAST_NATIVE_METHOD(Memory, peekByte, "(J)B"), 295 NATIVE_METHOD(Memory, peekByteArray, "(J[BII)V"), 296 NATIVE_METHOD(Memory, peekCharArray, "(J[CIIZ)V"), 297 NATIVE_METHOD(Memory, peekDoubleArray, "(J[DIIZ)V"), 298 NATIVE_METHOD(Memory, peekFloatArray, "(J[FIIZ)V"), 299 FAST_NATIVE_METHOD(Memory, peekIntNative, "(J)I"), 300 NATIVE_METHOD(Memory, peekIntArray, "(J[IIIZ)V"), 301 FAST_NATIVE_METHOD(Memory, peekLongNative, "(J)J"), 302 NATIVE_METHOD(Memory, peekLongArray, "(J[JIIZ)V"), [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | DirectByteBuffer.java | 32 import libcore.io.Memory; 208 return Memory.peekByte(a); in get() 240 Memory.peekByteArray(ix(pos), in get() 247 Memory.pokeByte(a, x); in put() 299 Memory.pokeByteArray(ix(pos), in put() 355 char x = (char) Memory.peekShort(ix(position), !nativeByteOrder); in getChar() 366 return (char) Memory.peekShort(ix(i), !nativeByteOrder); in getChar() 374 return (char) Memory.peekShort(ix(i), !nativeByteOrder); in getCharUnchecked() 382 Memory.peekCharArray(ix(pos), in getUnchecked() 387 Memory.pokeShort(a, (short) x, !nativeByteOrder); in putChar() [all …]
|
D | HeapByteBuffer.java | 31 import libcore.io.Memory; 212 Memory.unsafeBulkGet(dst, dstOffset, length * 2, hb, ix(pos), 2, !nativeByteOrder); in getUnchecked() 240 Memory.unsafeBulkPut(hb, ix(pos), length * 2, src, srcOffset, 2, !nativeByteOrder); in putUnchecked() 273 Memory.unsafeBulkGet(dst, dstOffset, length * 2, hb, ix(pos), 2, !nativeByteOrder); in getUnchecked() 301 Memory.unsafeBulkPut(hb, ix(pos), length * 2, src, srcOffset, 2, !nativeByteOrder); in putUnchecked() 334 Memory.unsafeBulkGet(dst, dstOffset, length * 4, hb, ix(pos), 4, !nativeByteOrder); in getUnchecked() 362 Memory.unsafeBulkPut(hb, ix(pos), length * 4, src, srcOffset, 4, !nativeByteOrder); in putUnchecked() 396 Memory.unsafeBulkGet(dst, dstOffset, length * 8, hb, ix(pos), 8, !nativeByteOrder); in getUnchecked() 424 Memory.unsafeBulkPut(hb, ix(pos), length * 8, src, srcOffset, 8, !nativeByteOrder); in putUnchecked() 457 Memory.unsafeBulkGet(dst, dstOffset, length * 4, hb, ix(pos), 4, !nativeByteOrder); in getUnchecked() [all …]
|
D | ByteBufferAsDoubleBuffer.java | 28 import libcore.io.Memory; 142 Memory.memmove(this, ix(0), this, ix(pos), rem << 3); in compact()
|
D | ByteBufferAsFloatBuffer.java | 28 import libcore.io.Memory; 141 Memory.memmove(this, ix(0), this, ix(pos), rem << 2); in compact()
|
D | ByteBufferAsShortBuffer.java | 28 import libcore.io.Memory; 140 Memory.memmove(this, ix(0), this, ix(pos), rem << 1); in compact()
|
D | ByteBufferAsLongBuffer.java | 28 import libcore.io.Memory; 141 Memory.memmove(this, ix(0), this, ix(pos), rem << 3); in compact()
|
D | ByteBufferAsIntBuffer.java | 28 import libcore.io.Memory; 141 Memory.memmove(this, ix(0), this, ix(pos), rem << 2); in compact()
|
D | ByteBufferAsCharBuffer.java | 28 import libcore.io.Memory; 145 Memory.memmove(this, ix(0), this, ix(pos), rem << 1); in compact()
|
D | ByteBuffer.java | 31 import libcore.io.Memory; 641 Memory.memmove(dstObject, dstOffset, srcObject, srcOffset, n); in put()
|
/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 | 32 public final class Memory { class 33 private Memory() { } in Memory() method in Memory
|
/libcore/ojluni/src/main/java/java/io/ |
D | DataInputStream.java | 29 import libcore.io.Memory; 318 return Memory.peekShort(readBuffer, 0, ByteOrder.BIG_ENDIAN); in readShort() 342 return Memory.peekShort(readBuffer, 0, ByteOrder.BIG_ENDIAN) & 0xffff; in readUnsignedShort() 366 return (char)Memory.peekShort(readBuffer, 0, ByteOrder.BIG_ENDIAN); in readChar() 390 return Memory.peekInt(readBuffer, 0, ByteOrder.BIG_ENDIAN); in readInt()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 42 import libcore.io.Memory; 604 Memory.peekByteArray(originalAddress, originalData, 0, originalData.length); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity() 621 Memory.peekByteArray(sliceAddress, actualSliceData, 0, actualSliceData.length); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
|
/libcore/ |
D | non_openjdk_java_files.bp | 243 "luni/src/main/java/libcore/io/Memory.java",
|
/libcore/mmodules/core_platform_api/api/legacy_platform/ |
D | current-api.txt | 968 public final class Memory {
|