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)
| 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 |
no test coverage detected