Home
last modified time | relevance | path

Searched refs:Memory (Results 1 – 25 of 35) sorted by relevance

12

/libcore/luni/src/test/java/libcore/libcore/io/
DMemoryTest.java24 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/
Dlibcore_io_Memory.cpp242 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/
DDirectByteBuffer.java35 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 …]
DHeapByteBuffer.java33 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 …]
DByteBufferAsDoubleBuffer.java33 import libcore.io.Memory;
305 Memory.memmove(this, 0, this, pos << 3, rem << 3); in compact()
DByteBufferAsLongBuffer.java33 import libcore.io.Memory;
305 Memory.memmove(this, 0, this, pos << 3, rem << 3); in compact()
DByteBufferAsIntBuffer.java33 import libcore.io.Memory;
305 Memory.memmove(this, 0, this, pos << 2, rem << 2); in compact()
DByteBufferAsShortBuffer.java33 import libcore.io.Memory;
305 Memory.memmove(this, 0, this, pos << 1, rem << 1); in compact()
DByteBufferAsFloatBuffer.java33 import libcore.io.Memory;
305 Memory.memmove(this, 0, this, pos << 2, rem << 2); in compact()
DByteBufferAsCharBuffer.java33 import libcore.io.Memory;
305 Memory.memmove(this, 0, this, pos << 1, rem << 1); in compact()
DHeap-X-Buffer.java.template33 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 …]
DByteBuffer.java45 import libcore.io.Memory;
1175 Memory.memmove(dstObject, dstOffset, srcObject, srcOffset, n); in putBuffer()
DHeapIntBuffer.java33 import libcore.io.Memory;
DHeapFloatBuffer.java33 import libcore.io.Memory;
DHeapShortBuffer.java33 import libcore.io.Memory;
DHeapLongBuffer.java33 import libcore.io.Memory;
DHeapDoubleBuffer.java33 import libcore.io.Memory;
DHeapCharBuffer.java33 import libcore.io.Memory;
DByteBufferAs-X-Buffer.java.template33 import libcore.io.Memory;
305 Memory.memmove(this, 0, this, pos << $LG_BYTES_PER_VALUE$, rem << $LG_BYTES_PER_VALUE$);
DFloatBuffer.java45 import libcore.io.Memory;
/libcore/luni/src/main/java/libcore/io/
DNioBufferIterator.java73 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()
DMemory.java37 public final class Memory { class
38 private Memory() { } in Memory() method in Memory
/libcore/ojluni/src/main/java/java/io/
DDataInputStream.java29 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/
DgenCopyDirectMemory.sh31 out=CopyDirect$2Memory.java
33 …java build.tools.spp.Spp -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3 -iCopyDirect-X-Memory.java.templa…
DCopyDirect-X-Memory.java.template29 public class CopyDirect$Type$Memory

12