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

Method toString

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

Obtain a Java String from the given native byte array. If there is no NUL terminator, the String will comprise the entire array. The encoding is obtained from #getDefaultStringEncoding(). @param buf The buffer containing the encoded bytes @see #toString(byte[], String)

(byte[] buf)

Source from the content-addressed store, hash-verified

489 * @see #toString(byte[], String)
490 */
491 public static String toString(byte[] buf) {
492 return toString(buf, getDefaultStringEncoding());
493 }
494
495 /**
496 * Obtain a Java String from the given native byte array, using the given

Calls 2

getCharsetMethod · 0.95

Tested by 15

testPerfstatCpuMethod · 0.76
testPerfstatDiskMethod · 0.76
testPerfstatProcessesMethod · 0.76
testPerfstatProtocolsMethod · 0.76
testGetVolumePathNameMethod · 0.76
testEnumVolumesMethod · 0.76
testStringFromGUID2Method · 0.76