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

Method NativeString

src/com/sun/jna/NativeString.java:50–52  ·  view source on GitHub ↗

Create a native string (NUL-terminated array of char ). Uses the encoding returned by Native#getDefaultStringEncoding().

(String string)

Source from the content-addressed store, hash-verified

48 * Uses the encoding returned by {@link Native#getDefaultStringEncoding()}.
49 */
50 public NativeString(String string) {
51 this(string, Native.getDefaultStringEncoding());
52 }
53
54 /** Create a native string as a NUL-terminated array of <code>wchar_t</code>
55 * (if <code>wide</code> is true) or <code>char</code>.<p>

Callers

nothing calls this directly

Calls 8

getBytesMethod · 0.95
toStringMethod · 0.45
equalsMethod · 0.45
lengthMethod · 0.45
setWideStringMethod · 0.45
writeMethod · 0.45
setByteMethod · 0.45

Tested by

no test coverage detected