Class Function

java.lang.Object
de.inetsoftware.jwebassembly.binary.SectionEntry
de.inetsoftware.jwebassembly.binary.Function
Direct Known Subclasses:
ImportFunction

class Function extends SectionEntry
An entry in the function section of the WebAssembly.
  • Field Details

  • Constructor Details

    • Function

      Function()
  • Method Details

    • writeSectionEntry

      void writeSectionEntry(WasmOutputStream stream) throws IOException
      Write this single entry to a section
      Specified by:
      writeSectionEntry in class SectionEntry
      Parameters:
      stream - the target
      Throws:
      IOException - if any I/O error occur
    • markCodePosition

      void markCodePosition(int streamPosition, int javaSourceLine, String sourceFileName)
      Add code position marker for a source map.
      Parameters:
      streamPosition - the position in the function stream
      javaSourceLine - the position in the Java Source file
      sourceFileName - the name of the Java source file
    • addCodeOffset

      void addCodeOffset(int offset)
      Add an offset to the marked code position in the source map
      Parameters:
      offset - the offset