Class MutableTruffleString


public final class MutableTruffleString extends AbstractTruffleString
Represents a mutable variant of a TruffleString. This class also accepts all operations of TruffleString. This class is not thread-safe and allows overwriting bytes in its internal byte array or native pointer via MutableTruffleString.WriteByteNode. The internal array or native pointer may also be modified externally, but the corresponding MutableTruffleString must be notified of this via notifyExternalMutation(). MutableTruffleString is not a Truffle interop type, and must be converted to an immutable TruffleString via TruffleString.AsTruffleStringNode before passing a language boundary.
See Also: