/libcore/luni/src/test/java/libcore/io/ |
D | MemoryTest.java | 42 Memory.pokeIntArray(ptr, values, 0, values.length, false); in testSetIntArray() 47 Memory.pokeIntArray(ptr, values, 0, values.length, true); in testSetIntArray() 53 Memory.pokeIntArray(ptr + i * scale, values, i, 1, true); in testSetIntArray() 62 assertEquals(expectedValues[i], Memory.peekInt(ptr + SizeOf.INT * i, swap)); in assertIntsEqual() 83 Memory.pokeLongArray(ptr, values, 0, values.length, false); in testSetLongArray() 88 Memory.pokeLongArray(ptr, values, 0, values.length, true); in testSetLongArray() 94 Memory.pokeLongArray(ptr + i * scale, values, i, 1, true); in testSetLongArray() 103 assertEquals(expectedValues[i], Memory.peekLong(ptr + SizeOf.LONG * i, swap)); in assertLongsEqual() 121 Memory.pokeShortArray(ptr, values, 0, values.length, false); in testSetShortArray() 126 Memory.pokeShortArray(ptr, values, 0, values.length, true); in testSetShortArray() [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 292 NATIVE_METHOD(Memory, memmove, "(Ljava/lang/Object;ILjava/lang/Object;IJ)V"), 293 FAST_NATIVE_METHOD(Memory, peekByte, "(J)B"), 294 NATIVE_METHOD(Memory, peekByteArray, "(J[BII)V"), 295 NATIVE_METHOD(Memory, peekCharArray, "(J[CIIZ)V"), 296 NATIVE_METHOD(Memory, peekDoubleArray, "(J[DIIZ)V"), 297 NATIVE_METHOD(Memory, peekFloatArray, "(J[FIIZ)V"), 298 FAST_NATIVE_METHOD(Memory, peekIntNative, "(J)I"), 299 NATIVE_METHOD(Memory, peekIntArray, "(J[IIIZ)V"), 300 FAST_NATIVE_METHOD(Memory, peekLongNative, "(J)J"), 301 NATIVE_METHOD(Memory, peekLongArray, "(J[JIIZ)V"), [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | DirectByteBuffer.java | 32 import libcore.io.Memory; 196 return Memory.peekByte(a); in get() 228 Memory.peekByteArray(ix(pos), in get() 235 Memory.pokeByte(a, x); in put() 279 Memory.pokeByteArray(ix(pos), in put() 335 char x = (char) Memory.peekShort(ix(position), !nativeByteOrder); in getChar() 346 return (char) Memory.peekShort(ix(i), !nativeByteOrder); in getChar() 354 return (char) Memory.peekShort(ix(i), !nativeByteOrder); in getCharUnchecked() 362 Memory.peekCharArray(ix(pos), in getUnchecked() 367 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 | ByteBufferAsShortBuffer.java | 28 import libcore.io.Memory; 140 Memory.memmove(this, ix(0), this, ix(pos), rem << 1); in compact()
|
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 | ByteBufferAsIntBuffer.java | 28 import libcore.io.Memory; 141 Memory.memmove(this, ix(0), this, ix(pos), rem << 2); in compact()
|
D | ByteBufferAsLongBuffer.java | 28 import libcore.io.Memory; 141 Memory.memmove(this, ix(0), this, ix(pos), rem << 3); 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; 570 Memory.memmove(dstObject, dstOffset, srcObject, srcOffset, n); in put()
|
/libcore/luni/src/main/java/libcore/io/ |
D | NioBufferIterator.java | 70 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); in readByteArray() 77 byte result = Memory.peekByte(address + position); in readByte() 85 int result = Memory.peekInt(address + position, swap); in readInt() 95 Memory.peekIntArray(address + position, dst, dstOffset, intCount, swap); in readIntArray() 102 short result = Memory.peekShort(address + position, swap); in readShort()
|
D | MemoryMappedFile.java | 27 import libcore.io.Memory;
|
D | Memory.java | 29 public final class Memory { class 30 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 | 41 import libcore.io.Memory; 658 Memory.peekByteArray(originalAddress, originalData, 0, originalData.length); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity() 675 Memory.peekByteArray(sliceAddress, actualSliceData, 0, actualSliceData.length); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
|
/libcore/ |
D | non_openjdk_java_files.mk | 275 luni/src/main/java/libcore/io/Memory.java \
|