public abstract static class TruffleString.CopyToByteArrayNode extends Node
TruffleString.CopyToByteArrayNode.execute(AbstractTruffleString, int, byte[], int, int, TruffleString.Encoding)
for
details.Node.Child, Node.Children
Modifier and Type | Method and Description |
---|---|
static TruffleString.CopyToByteArrayNode |
create()
Create a new
TruffleString.CopyToByteArrayNode . |
abstract void |
execute(AbstractTruffleString a,
int byteFromIndexA,
byte[] dst,
int byteFromIndexDst,
int byteLength,
TruffleString.Encoding expectedEncoding)
Copy a region of the given
TruffleString a , bounded by
byteFromIndexA and byteLength into the given byte array, at starting at
byteFromIndexDst . |
byte[] |
execute(AbstractTruffleString string,
TruffleString.Encoding expectedEncoding)
Copy the entire string to a byte[] and return it.
|
static TruffleString.CopyToByteArrayNode |
getUncached()
Get the uncached version of
TruffleString.CopyToByteArrayNode . |
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 final byte[] execute(AbstractTruffleString string, TruffleString.Encoding expectedEncoding)
public abstract void execute(AbstractTruffleString a, int byteFromIndexA, byte[] dst, int byteFromIndexDst, int byteLength, TruffleString.Encoding expectedEncoding)
TruffleString
a
, bounded by
byteFromIndexA
and byteLength
into the given byte array, at starting at
byteFromIndexDst
.public static TruffleString.CopyToByteArrayNode create()
TruffleString.CopyToByteArrayNode
.public static TruffleString.CopyToByteArrayNode getUncached()
TruffleString.CopyToByteArrayNode
.