<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Parrot - PackfileBytecodeSegment PMC</title> <link rel="stylesheet" type="text/css" href="../../../resources/parrot.css" media="all"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <div id="wrapper"> <div id="header"> <a href="http://www.parrot.org"> <img border=0 src="../../../resources/parrot_logo.png" id="logo" alt="parrot"> </a> </div> <!-- "header" --> <div id="divider"></div> <div id="mainbody"> <div id="breadcrumb"> <a href="../../../html/index.html">Home</a> » <a href="../../../html/pmc.html">PMCs</a> » PackfileBytecodeSegment PMC </div> <h1><a name="NAME" >NAME</a></h1> <p>src/pmc/packfilebytecodesegment.pmc - PackfileBytecodeSegment PMC</p> <h1><a name="DESCRIPTION" >DESCRIPTION</a></h1> <p>This class implements a PackfileBytecode class, providing a PMC-based interface for bytecode creation and manipulation.</p> <p>See packfile.pmc for the toplevel Packfile interface; see PDD13 for the design spec.</p> <h2><a name="Methods" >Methods</a></h2> <dl> <dt><a name="void_init()" ><b><code>void init()</b></code></a></dt> Initialize PackfileBytecodeSegment. <dt><a name="void_mark()" ><b><code>void mark()</b></code></a></dt> Marks the object as live. <dt><a name="void_*get_pointer()" ><b><code>void *get_pointer()</b></code></a></dt> Return a pointer to a PackFile_ByteCode* built from this PMC's data. <dt><a name="void_set_pointer()" ><b><code>void set_pointer()</b></code></a></dt> Initialize PackfileBytecodeSegment from PackFile_Bytecode* <dt><a name="void_push_pmc()" ><b><code>void push_pmc()</b></code></a></dt> Add an op and its arguments to this bytecode. The PMC should be a ResizablePMCArray with the first PMC being a String containing the full name of an op and the remaining PMCs being Integers. <dt><a name="PMC*_main_sub()" ><b><code>PMC* main_sub()</b></code></a></dt> Return :main Sub for this segment. <dt><a name="PMC*_opmap()" ><b><code>PMC* opmap()</b></code></a></dt> Return PackfileOpMap for this BytecodeSegment.</dl> </div> <!-- "mainbody" --> <div id="divider"></div> <div id="footer"> Copyright © 2002-2011, Parrot Foundation. </div> </div> <!-- "wrapper" --> </body> </html>