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

Method invokeString

src/com/sun/jna/Function.java:662–674  ·  view source on GitHub ↗

Call the native function being represented by this object @param callFlags calling convention to be used @param args Arguments to pass to the native function @param wide whether the native string uses wchar_t ; if false, char is assumed @return T

(int callFlags, Object[] args, boolean wide)

Source from the content-addressed store, hash-verified

660 * @return The value returned by the target native function, as a String
661 */
662 private String invokeString(int callFlags, Object[] args, boolean wide) {
663 Pointer ptr = invokePointer(callFlags, args);
664 String s = null;
665 if (ptr != null) {
666 if (wide) {
667 s = ptr.getWideString(0);
668 }
669 else {
670 s = ptr.getString(0, encoding);
671 }
672 }
673 return s;
674 }
675
676 /** Provide a human-readable representation of this object. */
677 @Override

Callers 1

invokeMethod · 0.95

Calls 5

invokePointerMethod · 0.95
getWideStringMethod · 0.95
getStringMethod · 0.95
invokeMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected