MCPcopy Index your code
hub / github.com/java-native-access/jna / getByteArray

Method getByteArray

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

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

(long offset, int arraySize)

Source from the content-addressed store, hash-verified

685 given <code>offset</code> from this {@link Pointer}.
686 */
687 public byte[] getByteArray(long offset, int arraySize) {
688 byte[] buf = new byte[arraySize];
689 read(offset, buf, 0, arraySize);
690 return buf;
691 }
692
693 /** Read a native array of wchar_t of size <code>arraySize</code> from the
694 given <code>offset</code> from this {@link Pointer}.

Callers 15

testDataTypesMethod · 0.95
testCFDataMethod · 0.95
getValueMethod · 0.95
getResourceMethod · 0.95
toPrimitiveArrayMethod · 0.95
getByteArrayPropertyMethod · 0.95
getPropertyMethod · 0.95
stillHoverMethod · 0.80
callbackMethod · 0.80
testCFStringRefMethod · 0.80
getDataMethod · 0.80

Calls 1

readMethod · 0.95

Tested by 6

testDataTypesMethod · 0.76
testCFDataMethod · 0.76
stillHoverMethod · 0.64
callbackMethod · 0.64
testCFStringRefMethod · 0.64