\hypertarget{group__Embryo__Data__String__Group}{}\doxysection{Embryo Data String Functions}
\label{group__Embryo__Data__String__Group}\index{Embryo Data String Functions@{Embryo Data String Functions}}


Functions that operate on strings in the memory of a virtual machine.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EAPI int \mbox{\hyperlink{group__Embryo__Data__String__Group_ga017e96ff1b5c2806c462ba08416a72d9}{embryo\+\_\+data\+\_\+string\+\_\+length\+\_\+get}} (Embryo\+\_\+\+Program $\ast$ep, Embryo\+\_\+\+Cell $\ast$str\+\_\+cell)
\begin{DoxyCompactList}\small\item\em Retrieves the length of the string starting at the given cell. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Embryo__Data__String__Group_ga6056316c070a146eb63f08e8e4176328}{embryo\+\_\+data\+\_\+string\+\_\+get}} (Embryo\+\_\+\+Program $\ast$ep, Embryo\+\_\+\+Cell $\ast$str\+\_\+cell, char $\ast$dst)
\begin{DoxyCompactList}\small\item\em Copies the string starting at the given cell to the given buffer. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Embryo__Data__String__Group_ga2f1b7e5ce221aaada5663e46f2578815}{embryo\+\_\+data\+\_\+string\+\_\+set}} (Embryo\+\_\+\+Program $\ast$ep, const char $\ast$src, Embryo\+\_\+\+Cell $\ast$str\+\_\+cell)
\begin{DoxyCompactList}\small\item\em Copies string in the given buffer into the virtual machine memory starting at the given cell. \end{DoxyCompactList}\item 
EAPI Embryo\+\_\+\+Cell $\ast$ \mbox{\hyperlink{group__Embryo__Data__String__Group_ga9efadddecd7ea3ca19e6f24e3a5738f1}{embryo\+\_\+data\+\_\+address\+\_\+get}} (Embryo\+\_\+\+Program $\ast$ep, Embryo\+\_\+\+Cell addr)
\begin{DoxyCompactList}\small\item\em Retreives a pointer to the address in the virtual machine given by the given cell. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Functions that operate on strings in the memory of a virtual machine. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Embryo__Data__String__Group_ga017e96ff1b5c2806c462ba08416a72d9}\label{group__Embryo__Data__String__Group_ga017e96ff1b5c2806c462ba08416a72d9}} 
\index{Embryo Data String Functions@{Embryo Data String Functions}!embryo\_data\_string\_length\_get@{embryo\_data\_string\_length\_get}}
\index{embryo\_data\_string\_length\_get@{embryo\_data\_string\_length\_get}!Embryo Data String Functions@{Embryo Data String Functions}}
\doxysubsubsection{\texorpdfstring{embryo\_data\_string\_length\_get()}{embryo\_data\_string\_length\_get()}}
{\footnotesize\ttfamily EAPI int embryo\+\_\+data\+\_\+string\+\_\+length\+\_\+get (\begin{DoxyParamCaption}\item[{Embryo\+\_\+\+Program $\ast$}]{ep,  }\item[{Embryo\+\_\+\+Cell $\ast$}]{str\+\_\+cell }\end{DoxyParamCaption})}



Retrieves the length of the string starting at the given cell. 


\begin{DoxyParams}{Parameters}
{\em ep} & The program the cell is part of. \\
\hline
{\em str\+\_\+cell} & Pointer to the first cell of the string. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The length of the string. {\ttfamily 0} is returned if there is an error. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Embryo__Data__String__Group_ga6056316c070a146eb63f08e8e4176328}\label{group__Embryo__Data__String__Group_ga6056316c070a146eb63f08e8e4176328}} 
\index{Embryo Data String Functions@{Embryo Data String Functions}!embryo\_data\_string\_get@{embryo\_data\_string\_get}}
\index{embryo\_data\_string\_get@{embryo\_data\_string\_get}!Embryo Data String Functions@{Embryo Data String Functions}}
\doxysubsubsection{\texorpdfstring{embryo\_data\_string\_get()}{embryo\_data\_string\_get()}}
{\footnotesize\ttfamily EAPI void embryo\+\_\+data\+\_\+string\+\_\+get (\begin{DoxyParamCaption}\item[{Embryo\+\_\+\+Program $\ast$}]{ep,  }\item[{Embryo\+\_\+\+Cell $\ast$}]{str\+\_\+cell,  }\item[{char $\ast$}]{dst }\end{DoxyParamCaption})}



Copies the string starting at the given cell to the given buffer. 


\begin{DoxyParams}{Parameters}
{\em ep} & The program the cell is part of. \\
\hline
{\em str\+\_\+cell} & Pointer to the first cell of the string. \\
\hline
{\em dst} & The given buffer. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Embryo__Data__String__Group_ga2f1b7e5ce221aaada5663e46f2578815}\label{group__Embryo__Data__String__Group_ga2f1b7e5ce221aaada5663e46f2578815}} 
\index{Embryo Data String Functions@{Embryo Data String Functions}!embryo\_data\_string\_set@{embryo\_data\_string\_set}}
\index{embryo\_data\_string\_set@{embryo\_data\_string\_set}!Embryo Data String Functions@{Embryo Data String Functions}}
\doxysubsubsection{\texorpdfstring{embryo\_data\_string\_set()}{embryo\_data\_string\_set()}}
{\footnotesize\ttfamily EAPI void embryo\+\_\+data\+\_\+string\+\_\+set (\begin{DoxyParamCaption}\item[{Embryo\+\_\+\+Program $\ast$}]{ep,  }\item[{const char $\ast$}]{src,  }\item[{Embryo\+\_\+\+Cell $\ast$}]{str\+\_\+cell }\end{DoxyParamCaption})}



Copies string in the given buffer into the virtual machine memory starting at the given cell. 


\begin{DoxyParams}{Parameters}
{\em ep} & The program the cell is part of. \\
\hline
{\em src} & The given buffer. \\
\hline
{\em str\+\_\+cell} & Pointer to the first cell to copy the string to. \\
\hline
\end{DoxyParams}


Referenced by \mbox{\hyperlink{group__Embryo__Run__Group_gaccef1558ef50bac16e99485e9fb0fe28}{embryo\+\_\+program\+\_\+run()}}.

\mbox{\Hypertarget{group__Embryo__Data__String__Group_ga9efadddecd7ea3ca19e6f24e3a5738f1}\label{group__Embryo__Data__String__Group_ga9efadddecd7ea3ca19e6f24e3a5738f1}} 
\index{Embryo Data String Functions@{Embryo Data String Functions}!embryo\_data\_address\_get@{embryo\_data\_address\_get}}
\index{embryo\_data\_address\_get@{embryo\_data\_address\_get}!Embryo Data String Functions@{Embryo Data String Functions}}
\doxysubsubsection{\texorpdfstring{embryo\_data\_address\_get()}{embryo\_data\_address\_get()}}
{\footnotesize\ttfamily EAPI Embryo\+\_\+\+Cell $\ast$ embryo\+\_\+data\+\_\+address\+\_\+get (\begin{DoxyParamCaption}\item[{Embryo\+\_\+\+Program $\ast$}]{ep,  }\item[{Embryo\+\_\+\+Cell}]{addr }\end{DoxyParamCaption})}



Retreives a pointer to the address in the virtual machine given by the given cell. 


\begin{DoxyParams}{Parameters}
{\em ep} & The program whose virtual machine address is being queried. \\
\hline
{\em addr} & The given cell. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to the cell at the given address. 
\end{DoxyReturn}


Referenced by \mbox{\hyperlink{group__Embryo__Run__Group_gaccef1558ef50bac16e99485e9fb0fe28}{embryo\+\_\+program\+\_\+run()}}.

