| <!DOCTYPE html> |
| |
| <html lang="en" data-content_root="./"> |
| <head> |
| <meta charset="utf-8" /> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" /> |
| |
| <title>Text Format — WebAssembly Custom Sections</title> |
| <link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" /> |
| <link rel="stylesheet" type="text/css" href="_static/basic.css?v=686e5160" /> |
| <link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=057308f9" /> |
| <script src="_static/documentation_options.js?v=7f41d439"></script> |
| <script src="_static/doctools.js?v=9bcbadda"></script> |
| <script src="_static/sphinx_highlight.js?v=dc90522c"></script> |
| <script>window.MathJax = {"tex": {"maxBuffer": 30720}}</script> |
| <script defer="defer" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> |
| <link rel="search" title="Search" href="search.html" /> |
| <link rel="prev" title="Binary Format" href="binary.html" /> |
| |
| <link rel="stylesheet" href="_static/custom.css" type="text/css" /> |
| |
| |
| |
| |
| |
| </head><body> |
| <div class="document"> |
| |
| <div class="sphinxsidebar" role="navigation" aria-label="Main"> |
| <div class="sphinxsidebarwrapper"> |
| <p class="logo"><a href="index.html"> |
| <img class="logo" src="_static/webassembly.png" alt="Logo of WebAssembly-Metadata-Code"/> |
| </a></p><h3>Navigation</h3> |
| <ul class="current"> |
| <li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="binary.html">Binary Format</a></li> |
| <li class="toctree-l1 current"><a class="current reference internal" href="#">Text Format</a></li> |
| </ul> |
| |
| |
| <hr /> |
| <ul> |
| |
| <li class="toctree-l1"><a href="./_download/WebAssembly-Metadata-Code.pdf">Download as PDF</a></li> |
| |
| </ul> |
| |
| <search id="searchbox" style="display: none" role="search"> |
| <h3 id="searchlabel">Quick search</h3> |
| <div class="searchformwrapper"> |
| <form class="search" action="search.html" method="get"> |
| <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/> |
| <input type="submit" value="Go" /> |
| </form> |
| </div> |
| </search> |
| <script>document.getElementById('searchbox').style.display = "block"</script> |
| </div> |
| </div> |
| <div class="documentwrapper"> |
| <div class="bodywrapper"> |
| |
| |
| <div class="body" role="main"> |
| |
| <section id="text-format"> |
| <span id="text"></span><h1>Text Format<a class="headerlink" href="#text-format" title="Link to this heading">¶</a></h1> |
| <section id="code-metadata"> |
| <span id="text-codemetadata"></span><h2>Code Metadata<a class="headerlink" href="#code-metadata" title="Link to this heading">¶</a></h2> |
| <p>Code Metadata items appear in the text format as custom annotations, and are considered |
| attached to the first instruction that follows them.</p> |
| <div class="math notranslate nohighlight"> |
| \[\begin{split}\begin{array}{llclll} |
| \def\mathdef97#1{{}}\mathdef97{code metadata annotation} & \href{text.html#text-codemetadata}{\mathtt{codemetadataannot}}(\mathtt{T}) &::=& |
| \def\mathdef128#1{\mbox{‘}\mathtt{#1}\mbox{’}}\mathdef128{(@metadata.code.T}~\mathit{data}{:}\mathtt{T}~\def\mathdef129#1{\mbox{‘}\mathtt{#1}\mbox{’}}\mathdef129{)} \\ |
| \end{array}\end{split}\]</div> |
| <p id="index-0">Where <cite>T</cite> is the format name of the item, and <cite>data</cite> is a byte string containing the same |
| payload as in the binary format.</p> |
| </section> |
| </section> |
| |
| |
| </div> |
| |
| </div> |
| </div> |
| <div class="clearer"></div> |
| </div> |
| <div class="footer"> |
| ©2024, WebAssembly Community Group. |
| |
| </div> |
| |
| |
| |
| |
| </body> |
| </html> |