\hypertarget{group__Embryo__Program__Creation__Group}{}\doxysection{Program Creation and Destruction Functions}
\label{group__Embryo__Program__Creation__Group}\index{Program Creation and Destruction Functions@{Program Creation and Destruction Functions}}


Functions that set up programs, and destroy them.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EAPI Embryo\+\_\+\+Program $\ast$ \mbox{\hyperlink{group__Embryo__Program__Creation__Group_ga8ab2d360f1bb2a0b6cf093b6cce581cc}{embryo\+\_\+program\+\_\+new}} (void $\ast$data, int size)
\begin{DoxyCompactList}\small\item\em Creates a new Embryo program, with bytecode data that can be freed. \end{DoxyCompactList}\item 
EAPI Embryo\+\_\+\+Program $\ast$ \mbox{\hyperlink{group__Embryo__Program__Creation__Group_gadd5c2619f70a59e2e53dc11a69f6ae8b}{embryo\+\_\+program\+\_\+const\+\_\+new}} (void $\ast$data, int size)
\begin{DoxyCompactList}\small\item\em Creates a new Embryo program, with bytecode data that cannot be freed. \end{DoxyCompactList}\item 
EAPI Embryo\+\_\+\+Program $\ast$ \mbox{\hyperlink{group__Embryo__Program__Creation__Group_gae6d5167ddc49f3241c7c419ae0f2faa2}{embryo\+\_\+program\+\_\+load}} (const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Creates a new Embryo program based on the bytecode data stored in the given file. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Embryo__Program__Creation__Group_ga2f25a71ef9f2254882c841fbd5e0e68a}{embryo\+\_\+program\+\_\+free}} (Embryo\+\_\+\+Program $\ast$ep)
\begin{DoxyCompactList}\small\item\em Frees the given Embryo program. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Functions that set up programs, and destroy them. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Embryo__Program__Creation__Group_ga8ab2d360f1bb2a0b6cf093b6cce581cc}\label{group__Embryo__Program__Creation__Group_ga8ab2d360f1bb2a0b6cf093b6cce581cc}} 
\index{Program Creation and Destruction Functions@{Program Creation and Destruction Functions}!embryo\_program\_new@{embryo\_program\_new}}
\index{embryo\_program\_new@{embryo\_program\_new}!Program Creation and Destruction Functions@{Program Creation and Destruction Functions}}
\doxysubsubsection{\texorpdfstring{embryo\_program\_new()}{embryo\_program\_new()}}
{\footnotesize\ttfamily EAPI Embryo\+\_\+\+Program $\ast$ embryo\+\_\+program\+\_\+new (\begin{DoxyParamCaption}\item[{void $\ast$}]{data,  }\item[{int}]{size }\end{DoxyParamCaption})}



Creates a new Embryo program, with bytecode data that can be freed. 


\begin{DoxyParams}{Parameters}
{\em data} & Pointer to the bytecode of the program. \\
\hline
{\em size} & Number of bytes of bytecode. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new Embryo program. 
\end{DoxyReturn}


Referenced by \mbox{\hyperlink{group__Embryo__Program__Creation__Group_gae6d5167ddc49f3241c7c419ae0f2faa2}{embryo\+\_\+program\+\_\+load()}}.

\mbox{\Hypertarget{group__Embryo__Program__Creation__Group_gadd5c2619f70a59e2e53dc11a69f6ae8b}\label{group__Embryo__Program__Creation__Group_gadd5c2619f70a59e2e53dc11a69f6ae8b}} 
\index{Program Creation and Destruction Functions@{Program Creation and Destruction Functions}!embryo\_program\_const\_new@{embryo\_program\_const\_new}}
\index{embryo\_program\_const\_new@{embryo\_program\_const\_new}!Program Creation and Destruction Functions@{Program Creation and Destruction Functions}}
\doxysubsubsection{\texorpdfstring{embryo\_program\_const\_new()}{embryo\_program\_const\_new()}}
{\footnotesize\ttfamily EAPI Embryo\+\_\+\+Program $\ast$ embryo\+\_\+program\+\_\+const\+\_\+new (\begin{DoxyParamCaption}\item[{void $\ast$}]{data,  }\item[{int}]{size }\end{DoxyParamCaption})}



Creates a new Embryo program, with bytecode data that cannot be freed. 


\begin{DoxyParams}{Parameters}
{\em data} & Pointer to the bytecode of the program. \\
\hline
{\em size} & Number of bytes of bytecode. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new Embryo program. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Embryo__Program__Creation__Group_gae6d5167ddc49f3241c7c419ae0f2faa2}\label{group__Embryo__Program__Creation__Group_gae6d5167ddc49f3241c7c419ae0f2faa2}} 
\index{Program Creation and Destruction Functions@{Program Creation and Destruction Functions}!embryo\_program\_load@{embryo\_program\_load}}
\index{embryo\_program\_load@{embryo\_program\_load}!Program Creation and Destruction Functions@{Program Creation and Destruction Functions}}
\doxysubsubsection{\texorpdfstring{embryo\_program\_load()}{embryo\_program\_load()}}
{\footnotesize\ttfamily EAPI Embryo\+\_\+\+Program $\ast$ embryo\+\_\+program\+\_\+load (\begin{DoxyParamCaption}\item[{const char $\ast$}]{file }\end{DoxyParamCaption})}



Creates a new Embryo program based on the bytecode data stored in the given file. 


\begin{DoxyParams}{Parameters}
{\em file} & Filename of the given file. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new Embryo program. 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Embryo__Program__Creation__Group_ga8ab2d360f1bb2a0b6cf093b6cce581cc}{embryo\+\_\+program\+\_\+new()}}, and \mbox{\hyperlink{group__Embryo__Swap__Group_ga9131c33a606c33dbe1dd8a2632567cdf}{embryo\+\_\+swap\+\_\+32()}}.

\mbox{\Hypertarget{group__Embryo__Program__Creation__Group_ga2f25a71ef9f2254882c841fbd5e0e68a}\label{group__Embryo__Program__Creation__Group_ga2f25a71ef9f2254882c841fbd5e0e68a}} 
\index{Program Creation and Destruction Functions@{Program Creation and Destruction Functions}!embryo\_program\_free@{embryo\_program\_free}}
\index{embryo\_program\_free@{embryo\_program\_free}!Program Creation and Destruction Functions@{Program Creation and Destruction Functions}}
\doxysubsubsection{\texorpdfstring{embryo\_program\_free()}{embryo\_program\_free()}}
{\footnotesize\ttfamily EAPI void embryo\+\_\+program\+\_\+free (\begin{DoxyParamCaption}\item[{Embryo\+\_\+\+Program $\ast$}]{ep }\end{DoxyParamCaption})}



Frees the given Embryo program. 


\begin{DoxyParams}{Parameters}
{\em ep} & The given program. \\
\hline
\end{DoxyParams}
