Class ExportByteSourceNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.wasm.ExportByteSourceNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class ExportByteSourceNode extends JavaScriptBaseNode
Exports byte source such that it can be read by WASM.
  • Constructor Details

    • ExportByteSourceNode

      protected ExportByteSourceNode(JSContext context, String nonByteSourceMessage, String emptyByteSourceMessage)
  • Method Details

    • execute

      public abstract org.graalvm.polyglot.io.ByteSequence execute(Object byteSource)
    • create

      public static ExportByteSourceNode create(JSContext context, String nonByteSourceMessage, String emptyByteSourceMessage)
    • exportBuffer

      protected org.graalvm.polyglot.io.ByteSequence exportBuffer(JSArrayBufferObject arrayBuffer, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch)
    • exportTypedArray

      protected org.graalvm.polyglot.io.ByteSequence exportTypedArray(JSTypedArrayObject typedArray, ArrayBufferViewGetByteLengthNode getByteLengthNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch)
    • exportDataView

      protected org.graalvm.polyglot.io.ByteSequence exportDataView(JSDataViewObject dataView, GetViewByteLengthNode getByteLengthNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch)
    • exportOther

      protected org.graalvm.polyglot.io.ByteSequence exportOther(Object other)