public static class UninterruptibleUtils.String extends Object
| Constructor and Description |
|---|
String() |
| Modifier and Type | Method and Description |
|---|---|
static int |
modifiedUtf8Length(String string,
boolean addNullTerminator)
Gets the length of String when encoded using modified UTF8 (null characters that are
present in the input will be encoded in a way that they do not interfere with a
null-terminator).
|
static void |
toModifiedUtf8(String string,
org.graalvm.word.Pointer buffer,
org.graalvm.word.Pointer bufferEnd,
boolean addNullTerminator)
Writes the encoded String into the given buffer using the modified UTF8 encoding (null
characters that are present in the input will be encoded in a way that they do not
interfere with the null terminator).
|
public static int modifiedUtf8Length(String string, boolean addNullTerminator)
public static void toModifiedUtf8(String string, org.graalvm.word.Pointer buffer, org.graalvm.word.Pointer bufferEnd, boolean addNullTerminator)