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

Method getCharArray

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

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

(long offset, int arraySize)

Source from the content-addressed store, hash-verified

694 given <code>offset</code> from this {@link Pointer}.
695 */
696 public char[] getCharArray(long offset, int arraySize) {
697 char[] buf = new char[arraySize];
698 read(offset, buf, 0, arraySize);
699 return buf;
700 }
701
702 /** Read a native array of int16 of size <code>arraySize</code> from the
703 given <code>offset</code> from this {@link Pointer}.

Callers 3

loadStringMethod · 0.80
readMethod · 0.80

Calls 1

readMethod · 0.95

Tested by 1