Elide GraalVM25.6.0-elide.4
All types
Versions and modules

TruffleString.FromByteArrayNode

Javaabstract classin com.oracle.truffle.api.stringssince 22.1

public abstract static class TruffleString.FromByteArrayNode extends AbstractPublicNode
Inheritance
  1. Object
  2. Node
  3. AbstractPublicNode
  4. FromByteArrayNode
Enclosing type
TruffleString

Node to create a new TruffleString from a byte array. See execute(byte[], int, int, TruffleString.Encoding, boolean) for details.

Members shown

Methods5 + 26 inherited

TruffleString execute(byte[], TruffleString.Encoding)

execute

since 22.1
public final TruffleString execute(byte[] value, TruffleString.Encoding encoding)

Creates a new TruffleString from a byte array. See execute(byte[], int, int, TruffleString.Encoding, boolean) for details.

Parameters

valuebyte[]
No description.
encodingTruffleString.Encoding
No description.

Returns

TruffleString
No description.
TruffleString execute(byte[], TruffleString.Encoding, boolean)

execute

since 22.1
public final TruffleString execute(byte[] value, TruffleString.Encoding encoding, boolean copy)

Creates a new TruffleString from a byte array. See execute(byte[], int, int, TruffleString.Encoding, boolean) for details.

Parameters

valuebyte[]
No description.
encodingTruffleString.Encoding
No description.
copyboolean
No description.

Returns

TruffleString
No description.
TruffleString execute(byte[], int, int, TruffleString.Encoding, boolean)

execute

abstractsince 22.1
public abstract TruffleString execute(
    byte[] value,
    int byteOffset,
    int byteLength,
    TruffleString.Encoding encoding,
    boolean copy
)

Creates a new TruffleString 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. Caution: TruffleString assumes the array to be immutable, do not modify the byte array after passing it to the non-copying variant of this operation!

Parameters

valuebyte[]
No description.
byteOffsetint
No description.
byteLengthint
No description.
encodingTruffleString.Encoding
No description.
copyboolean
No description.

Returns

TruffleString
No description.
static TruffleString.FromByteArrayNode create()

create

staticsince 22.1
public static TruffleString.FromByteArrayNode create()

Create a new FromByteArrayNode.

Returns

static TruffleString.FromByteArrayNode getUncached()

getUncached

staticsince 22.1
public static TruffleString.FromByteArrayNode getUncached()

Get the uncached version of FromByteArrayNode.

Returns

Inherited members