com.sun.jna
class NativeString extends Object implements CharSequence, Comparable
const char*
or const wchar_t*
) for use when
converting a Java String into a native memory function argument.
Constructor Summary | |
---|---|
NativeString(String string) Create a native string (NUL-terminated array of char ).
If the system property | |
NativeString(String string, boolean wide) Create a native string as a NUL-terminated array of wchar_t
(if wide is true) or char .
If the system property |
Method Summary | |
---|---|
char | charAt(int index) |
int | compareTo(Object other) |
boolean | equals(Object other) |
Pointer | getPointer() |
int | hashCode() |
int | length() |
CharSequence | subSequence(int start, int end) |
String | toString() |
char
).
If the system property jna.encoding
is set, its value will
be used to encode the native string. If not set or if the encoding
is unavailable, the default platform encoding will be used.
wchar_t
(if wide
is true) or char
.
If the system property jna.encoding
is set, its value will
be used to encode the native char
string.
If not set or if the encoding is unavailable, the default platform
encoding will be used.
Parameters: string value to write to native memory wide whether to store the String as wchar_t