public static class UninterruptibleUtils.String extends Object
| Constructor and Description |
|---|
String() |
| Modifier and Type | Method and Description |
|---|---|
static char |
charAt(boolean isLatin1,
byte[] value,
int index)
Returns a character from a string at
index position based on the encoding format. |
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 org.graalvm.word.Pointer |
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)
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).public static char charAt(boolean isLatin1,
byte[] value,
int index)
index position based on the encoding format.public static org.graalvm.word.Pointer toModifiedUTF8(String string, org.graalvm.word.Pointer buffer, org.graalvm.word.Pointer bufferEnd, boolean addNullTerminator)
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).