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

Method getBytes

src/com/sun/jna/Native.java:932–934  ·  view source on GitHub ↗

@param s The input string @return A byte array corresponding to the given String. The encoding used is obtained from #getDefaultStringEncoding().

(String s)

Source from the content-addressed store, hash-verified

930 * used is obtained from {@link #getDefaultStringEncoding()}.
931 */
932 static byte[] getBytes(String s) {
933 return getBytes(s, getDefaultStringEncoding());
934 }
935
936 /**
937 * @param s The string. Must not be {@code null}.

Callers 9

testGetBytesMethod · 0.95
setStringMethod · 0.95
setStringMethod · 0.95
NativeStringMethod · 0.95
toByteArrayMethod · 0.95

Calls 2

getCharsetMethod · 0.95

Tested by 5

testGetBytesMethod · 0.76