MCPcopy Create free account
hub / github.com/java-native-access/jna / getShortArray

Method getShortArray

src/com/sun/jna/Pointer.java:705–709  ·  view source on GitHub ↗

Read a native array of int16 of size arraySize from the given offset from this Pointer.

(long offset, int arraySize)

Source from the content-addressed store, hash-verified

703 given <code>offset</code> from this {@link Pointer}.
704 */
705 public short[] getShortArray(long offset, int arraySize) {
706 short[] buf = new short[arraySize];
707 read(offset, buf, 0, arraySize);
708 return buf;
709 }
710
711 /** Read a native array of int32 of size <code>arraySize</code> from the
712 given <code>offset</code> from this {@link Pointer}.

Callers 4

testDataTypesMethod · 0.95
toPrimitiveArrayMethod · 0.95
getValueMethod · 0.80
getFieldsMethod · 0.80

Calls 1

readMethod · 0.95

Tested by 1

testDataTypesMethod · 0.76