Java Code Examples for libcore.io.Memory#unsafeBulkGet()
The following examples show how to use
libcore.io.Memory#unsafeBulkGet() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HeapByteBuffer.java From j2objc with Apache License 2.0 | 4 votes |
@Override void getUnchecked(int pos, char[] dst, int dstOffset, int length) { Memory.unsafeBulkGet(dst, dstOffset, length * 2, hb, ix(pos), 2, !nativeByteOrder); }
Example 2
Source File: HeapByteBuffer.java From j2objc with Apache License 2.0 | 4 votes |
@Override void getUnchecked(int pos, short[] dst, int dstOffset, int length) { Memory.unsafeBulkGet(dst, dstOffset, length * 2, hb, ix(pos), 2, !nativeByteOrder); }
Example 3
Source File: HeapByteBuffer.java From j2objc with Apache License 2.0 | 4 votes |
@Override void getUnchecked(int pos, int[] dst, int dstOffset, int length) { Memory.unsafeBulkGet(dst, dstOffset, length * 4, hb, ix(pos), 4, !nativeByteOrder); }
Example 4
Source File: HeapByteBuffer.java From j2objc with Apache License 2.0 | 4 votes |
@Override void getUnchecked(int pos, long[] dst, int dstOffset, int length) { Memory.unsafeBulkGet(dst, dstOffset, length * 8, hb, ix(pos), 8, !nativeByteOrder); }
Example 5
Source File: HeapByteBuffer.java From j2objc with Apache License 2.0 | 4 votes |
@Override void getUnchecked(int pos, float[] dst, int dstOffset, int length) { Memory.unsafeBulkGet(dst, dstOffset, length * 4, hb, ix(pos), 4, !nativeByteOrder); }
Example 6
Source File: HeapByteBuffer.java From j2objc with Apache License 2.0 | 4 votes |
@Override void getUnchecked(int pos, double[] dst, int dstOffset, int length) { Memory.unsafeBulkGet(dst, dstOffset, length * 8, hb, ix(pos), 8, !nativeByteOrder); }