\hypertarget{group__DecodeGroup}{}\section{Decode Functions}
\label{group__DecodeGroup}\index{Decode Functions@{Decode Functions}}


Decode functions for various input types.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ \mbox{\hyperlink{group__DecodeGroup_gaa48d60d852e4a8ecb42e33d6131324f7}{ebml\+::ebml\+Element\+Type\+::decode}} (const \mbox{\hyperlink{classebml_1_1parseString}{parse\+String}} \&) const
\begin{DoxyCompactList}\small\item\em Decode and create a new E\+B\+ML element instance from {\ttfamily \mbox{\hyperlink{classebml_1_1parseString}{ebml\+::parse\+String}}} instance. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ \mbox{\hyperlink{group__DecodeGroup_gaf595f0763f02166f69d9e1aed62b84f7}{ebml\+::ebml\+Element\+Type\+::decode}} (const \mbox{\hyperlink{classebml_1_1parseFile}{parse\+File}} \&) const
\begin{DoxyCompactList}\small\item\em Decode and create a new E\+B\+ML element instance from {\ttfamily \mbox{\hyperlink{classebml_1_1parseFile}{ebml\+::parse\+File}}} instance. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ \mbox{\hyperlink{group__DecodeGroup_ga55fbb03d1571dc747f4641b598c6c537}{ebml\+::ebml\+Element\+Type\+::decode}} (const char $\ast$, size\+\_\+t) const
\begin{DoxyCompactList}\small\item\em Decode from a raw data buffer. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ \mbox{\hyperlink{group__DecodeGroup_ga37a2b0ffdbaa9caaa47a5041b31193ca}{ebml\+::ebml\+Element\+Type\+::decode}} (const std\+::string \&) const
\begin{DoxyCompactList}\small\item\em Decode from a {\ttfamily std\+::string} instance. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ \mbox{\hyperlink{group__DecodeGroup_ga7c6e009806d4de2949eff4d3598e611c}{ebml\+::ebml\+Element\+Type\+::decode}} (\mbox{\hyperlink{classebml_1_1ioBase}{io\+Base}} \&) const
\item 
\mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ \mbox{\hyperlink{group__DecodeGroup_ga41cfd7626f8d3d2099856a8e9c03ec26}{ebml\+::ebml\+Element\+Type\+::decode}} (\mbox{\hyperlink{classebml_1_1ioBase}{io\+Base}} \&, off\+\_\+t \&) const
\item 
\mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ \mbox{\hyperlink{group__DecodeGroup_gab1e2778bdb3e4f875cfe9d016a642ba3}{ebml\+::ebml\+Element\+Type\+::decode}} (\mbox{\hyperlink{classebml_1_1ioBase}{io\+Base}} \&, off\+\_\+t, off\+\_\+t \&) const
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Decode functions for various input types. 

\begin{DoxyReturn}{Returns}
A shared pointer to the new {\ttfamily \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+::ebml\+Element}}} instance. 
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em \mbox{\hyperlink{classebml_1_1ebmlDecodeError}{ebml\+::ebml\+Decode\+Error}}} & If there was an error decoding the data (may be subclass). \\
\hline
{\em \mbox{\hyperlink{classebml_1_1ebmlNoMatch}{ebml\+::ebml\+No\+Match}}} & If the E\+B\+ML ID does not match. \\
\hline
{\em \mbox{\hyperlink{classebml_1_1ebmlUnexpectedEndOfData}{ebml\+::ebml\+Unexpected\+End\+Of\+Data}}} & If the data terminates before end of data (in either). \\
\hline
{\em \mbox{\hyperlink{classebml_1_1ebmlDataContinues}{ebml\+::ebml\+Data\+Continues}}} & If the data continues past expected end. \\
\hline
{\em std\+::ios\+\_\+base\+::failure} & If an IO error occurs while attempting to read from a file. \\
\hline
\end{DoxyExceptions}


\subsection{Function Documentation}
\mbox{\Hypertarget{group__DecodeGroup_gaa48d60d852e4a8ecb42e33d6131324f7}\label{group__DecodeGroup_gaa48d60d852e4a8ecb42e33d6131324f7}} 
\index{Decode Functions@{Decode Functions}!decode@{decode}}
\index{decode@{decode}!Decode Functions@{Decode Functions}}
\subsubsection{\texorpdfstring{decode()}{decode()}\hspace{0.1cm}{\footnotesize\ttfamily [1/7]}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ ebml\+::ebml\+Element\+Type\+::decode (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classebml_1_1parseString}{parse\+String}} \&}]{parsed }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Decode and create a new E\+B\+ML element instance from {\ttfamily \mbox{\hyperlink{classebml_1_1parseString}{ebml\+::parse\+String}}} instance. 


\begin{DoxyParams}{Parameters}
{\em parsed} & The parsed E\+B\+ML string. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__DecodeGroup_gaf595f0763f02166f69d9e1aed62b84f7}\label{group__DecodeGroup_gaf595f0763f02166f69d9e1aed62b84f7}} 
\index{Decode Functions@{Decode Functions}!decode@{decode}}
\index{decode@{decode}!Decode Functions@{Decode Functions}}
\subsubsection{\texorpdfstring{decode()}{decode()}\hspace{0.1cm}{\footnotesize\ttfamily [2/7]}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ ebml\+::ebml\+Element\+Type\+::decode (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classebml_1_1parseFile}{parse\+File}} \&}]{parsed }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Decode and create a new E\+B\+ML element instance from {\ttfamily \mbox{\hyperlink{classebml_1_1parseFile}{ebml\+::parse\+File}}} instance. 


\begin{DoxyParams}{Parameters}
{\em parsed} & Parsing information parsed from an IO file. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__DecodeGroup_ga55fbb03d1571dc747f4641b598c6c537}\label{group__DecodeGroup_ga55fbb03d1571dc747f4641b598c6c537}} 
\index{Decode Functions@{Decode Functions}!decode@{decode}}
\index{decode@{decode}!Decode Functions@{Decode Functions}}
\subsubsection{\texorpdfstring{decode()}{decode()}\hspace{0.1cm}{\footnotesize\ttfamily [3/7]}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ ebml\+::ebml\+Element\+Type\+::decode (\begin{DoxyParamCaption}\item[{const char $\ast$}]{data,  }\item[{size\+\_\+t}]{size }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Decode from a raw data buffer. 


\begin{DoxyParams}{Parameters}
{\em data} & Pointer to the data buffer. \\
\hline
{\em size} & Number of bytes in the data buffer. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__DecodeGroup_ga37a2b0ffdbaa9caaa47a5041b31193ca}\label{group__DecodeGroup_ga37a2b0ffdbaa9caaa47a5041b31193ca}} 
\index{Decode Functions@{Decode Functions}!decode@{decode}}
\index{decode@{decode}!Decode Functions@{Decode Functions}}
\subsubsection{\texorpdfstring{decode()}{decode()}\hspace{0.1cm}{\footnotesize\ttfamily [4/7]}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ ebml\+::ebml\+Element\+Type\+::decode (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{data }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Decode from a {\ttfamily std\+::string} instance. 


\begin{DoxyParams}{Parameters}
{\em data} & String data. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__DecodeGroup_ga7c6e009806d4de2949eff4d3598e611c}\label{group__DecodeGroup_ga7c6e009806d4de2949eff4d3598e611c}} 
\index{Decode Functions@{Decode Functions}!decode@{decode}}
\index{decode@{decode}!Decode Functions@{Decode Functions}}
\subsubsection{\texorpdfstring{decode()}{decode()}\hspace{0.1cm}{\footnotesize\ttfamily [5/7]}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ ebml\+::ebml\+Element\+Type\+::decode (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classebml_1_1ioBase}{io\+Base}} \&}]{file }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{group__DecodeGroup_ga41cfd7626f8d3d2099856a8e9c03ec26}\label{group__DecodeGroup_ga41cfd7626f8d3d2099856a8e9c03ec26}} 
\index{Decode Functions@{Decode Functions}!decode@{decode}}
\index{decode@{decode}!Decode Functions@{Decode Functions}}
\subsubsection{\texorpdfstring{decode()}{decode()}\hspace{0.1cm}{\footnotesize\ttfamily [6/7]}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ ebml\+::ebml\+Element\+Type\+::decode (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classebml_1_1ioBase}{io\+Base}} \&}]{file,  }\item[{off\+\_\+t \&}]{offset }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{group__DecodeGroup_gab1e2778bdb3e4f875cfe9d016a642ba3}\label{group__DecodeGroup_gab1e2778bdb3e4f875cfe9d016a642ba3}} 
\index{Decode Functions@{Decode Functions}!decode@{decode}}
\index{decode@{decode}!Decode Functions@{Decode Functions}}
\subsubsection{\texorpdfstring{decode()}{decode()}\hspace{0.1cm}{\footnotesize\ttfamily [7/7]}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespaceebml_a390a3cc4808943a10d4a6f1f912afaba}{ebml\+::ptr}}$<$ \mbox{\hyperlink{classebml_1_1ebmlElement}{ebml\+Element}} $>$ ebml\+::ebml\+Element\+Type\+::decode (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classebml_1_1ioBase}{io\+Base}} \&}]{file,  }\item[{off\+\_\+t}]{offset,  }\item[{off\+\_\+t \&}]{end\+Offset }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

