public abstract static class MutableTruffleString.FromByteArrayNode extends Node
MutableTruffleString
from a byte array. See
MutableTruffleString.FromByteArrayNode.execute(byte[], int, int, TruffleString.Encoding, boolean)
for details.Node.Child, Node.Children
Modifier and Type | Method and Description |
---|---|
static MutableTruffleString.FromByteArrayNode |
create()
Create a new
MutableTruffleString.FromByteArrayNode . |
abstract MutableTruffleString |
execute(byte[] value,
int byteOffset,
int byteLength,
TruffleString.Encoding encoding,
boolean copy)
Creates a new
MutableTruffleString from a byte array. |
static MutableTruffleString.FromByteArrayNode |
getUncached()
Get the uncached version of
MutableTruffleString.FromByteArrayNode . |
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toString
public abstract MutableTruffleString execute(byte[] value, int byteOffset, int byteLength, TruffleString.Encoding encoding, boolean copy)
MutableTruffleString
from a byte array. The array content is
assumed to be encoded in the given encoding already. This operation allows non-copying
string creation, i.e. the array parameter can be used directly by passing
copy = false
. If the array is modified after non-copying string creation, the
string must be notified of this via MutableTruffleString.notifyExternalMutation()
.public static MutableTruffleString.FromByteArrayNode create()
MutableTruffleString.FromByteArrayNode
.public static MutableTruffleString.FromByteArrayNode getUncached()
MutableTruffleString.FromByteArrayNode
.