\hypertarget{g__virstor__md_8c}{}\doxysection{geom/virstor/g\+\_\+virstor\+\_\+md.c File Reference}
\label{g__virstor__md_8c}\index{geom/virstor/g\_virstor\_md.c@{geom/virstor/g\_virstor\_md.c}}
{\ttfamily \#include $<$sys/cdefs.\+h$>$}\newline
{\ttfamily \#include $<$sys/param.\+h$>$}\newline
{\ttfamily \#include $<$sys/endian.\+h$>$}\newline
{\ttfamily \#include $<$geom/virstor/g\+\_\+virstor\+\_\+md.\+h$>$}\newline
{\ttfamily \#include $<$geom/virstor/binstream.\+h$>$}\newline
Include dependency graph for g\+\_\+virstor\+\_\+md.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d8/d7c/g__virstor__md_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{g__virstor__md_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\+\_\+\+\_\+\+FBSDID}} (\char`\"{}\$Free\+BSD\$\char`\"{})
\item 
void \mbox{\hyperlink{g__virstor__md_8c_ac94876d9c25ebc350671cb02cb57f453}{virstor\+\_\+metadata\+\_\+encode}} (struct \mbox{\hyperlink{structg__virstor__metadata}{g\+\_\+virstor\+\_\+metadata}} $\ast$md, unsigned char $\ast$\mbox{\hyperlink{g__part__if_8m_a735984d41155bc1032e09bece8f8d66d}{data}})
\item 
void \mbox{\hyperlink{g__virstor__md_8c_aa9312b47d034e7773ab736440ed3b4a0}{virstor\+\_\+metadata\+\_\+decode}} (unsigned char $\ast$\mbox{\hyperlink{g__part__if_8m_a735984d41155bc1032e09bece8f8d66d}{data}}, struct \mbox{\hyperlink{structg__virstor__metadata}{g\+\_\+virstor\+\_\+metadata}} $\ast$md)
\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{g__virstor__md_8c_a8c3ef283470a68cd30afe9b8a72cb60f}\label{g__virstor__md_8c_a8c3ef283470a68cd30afe9b8a72cb60f}} 
\index{g\_virstor\_md.c@{g\_virstor\_md.c}!\_\_FBSDID@{\_\_FBSDID}}
\index{\_\_FBSDID@{\_\_FBSDID}!g\_virstor\_md.c@{g\_virstor\_md.c}}
\doxysubsubsection{\texorpdfstring{\_\_FBSDID()}{\_\_FBSDID()}}
{\footnotesize\ttfamily \+\_\+\+\_\+\+FBSDID (\begin{DoxyParamCaption}\item[{\char`\"{}\$Free\+BSD\$\char`\"{}}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{g__virstor__md_8c_aa9312b47d034e7773ab736440ed3b4a0}\label{g__virstor__md_8c_aa9312b47d034e7773ab736440ed3b4a0}} 
\index{g\_virstor\_md.c@{g\_virstor\_md.c}!virstor\_metadata\_decode@{virstor\_metadata\_decode}}
\index{virstor\_metadata\_decode@{virstor\_metadata\_decode}!g\_virstor\_md.c@{g\_virstor\_md.c}}
\doxysubsubsection{\texorpdfstring{virstor\_metadata\_decode()}{virstor\_metadata\_decode()}}
{\footnotesize\ttfamily void virstor\+\_\+metadata\+\_\+decode (\begin{DoxyParamCaption}\item[{unsigned char $\ast$}]{data,  }\item[{struct \mbox{\hyperlink{structg__virstor__metadata}{g\+\_\+virstor\+\_\+metadata}} $\ast$}]{md }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{g__virstor__md_8c_source_l00071}{71}} of file \mbox{\hyperlink{g__virstor__md_8c_source}{g\+\_\+virstor\+\_\+md.\+c}}.



References \mbox{\hyperlink{binstream_8c_source_l00041}{bs\+\_\+open()}}, \mbox{\hyperlink{binstream_8c_source_l00141}{bs\+\_\+read\+\_\+buf()}}, \mbox{\hyperlink{binstream_8c_source_l00151}{bs\+\_\+read\+\_\+u16()}}, \mbox{\hyperlink{binstream_8c_source_l00160}{bs\+\_\+read\+\_\+u32()}}, \mbox{\hyperlink{binstream_8c_source_l00169}{bs\+\_\+read\+\_\+u64()}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00061}{g\+\_\+virstor\+\_\+metadata\+::chunk\+\_\+count}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00062}{g\+\_\+virstor\+\_\+metadata\+::chunk\+\_\+next}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00063}{g\+\_\+virstor\+\_\+metadata\+::chunk\+\_\+reserved}}, \mbox{\hyperlink{g__part__if_8m_source_l00180}{data}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00064}{g\+\_\+virstor\+\_\+metadata\+::flags}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00054}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+chunk\+\_\+size}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00055}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+count}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00052}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+id}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00049}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+magic}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00051}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+name}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00050}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+version}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00053}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+virsize}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00059}{g\+\_\+virstor\+\_\+metadata\+::no}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00058}{g\+\_\+virstor\+\_\+metadata\+::provider}}, and \mbox{\hyperlink{g__virstor__md_8h_source_l00060}{g\+\_\+virstor\+\_\+metadata\+::provsize}}.



Referenced by \mbox{\hyperlink{g__virstor_8c_source_l00982}{read\+\_\+metadata()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=335pt]{d3/dd2/g__virstor__md_8c_aa9312b47d034e7773ab736440ed3b4a0_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d3/dd2/g__virstor__md_8c_aa9312b47d034e7773ab736440ed3b4a0_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{g__virstor__md_8c_ac94876d9c25ebc350671cb02cb57f453}\label{g__virstor__md_8c_ac94876d9c25ebc350671cb02cb57f453}} 
\index{g\_virstor\_md.c@{g\_virstor\_md.c}!virstor\_metadata\_encode@{virstor\_metadata\_encode}}
\index{virstor\_metadata\_encode@{virstor\_metadata\_encode}!g\_virstor\_md.c@{g\_virstor\_md.c}}
\doxysubsubsection{\texorpdfstring{virstor\_metadata\_encode()}{virstor\_metadata\_encode()}}
{\footnotesize\ttfamily void virstor\+\_\+metadata\+\_\+encode (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structg__virstor__metadata}{g\+\_\+virstor\+\_\+metadata}} $\ast$}]{md,  }\item[{unsigned char $\ast$}]{data }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{g__virstor__md_8c_source_l00043}{43}} of file \mbox{\hyperlink{g__virstor__md_8c_source}{g\+\_\+virstor\+\_\+md.\+c}}.



References \mbox{\hyperlink{binstream_8c_source_l00041}{bs\+\_\+open()}}, \mbox{\hyperlink{binstream_8c_source_l00069}{bs\+\_\+write\+\_\+buf()}}, \mbox{\hyperlink{binstream_8c_source_l00088}{bs\+\_\+write\+\_\+u16()}}, \mbox{\hyperlink{binstream_8c_source_l00096}{bs\+\_\+write\+\_\+u32()}}, \mbox{\hyperlink{binstream_8c_source_l00104}{bs\+\_\+write\+\_\+u64()}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00061}{g\+\_\+virstor\+\_\+metadata\+::chunk\+\_\+count}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00062}{g\+\_\+virstor\+\_\+metadata\+::chunk\+\_\+next}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00063}{g\+\_\+virstor\+\_\+metadata\+::chunk\+\_\+reserved}}, \mbox{\hyperlink{g__part__if_8m_source_l00180}{data}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00064}{g\+\_\+virstor\+\_\+metadata\+::flags}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00054}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+chunk\+\_\+size}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00055}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+count}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00052}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+id}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00049}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+magic}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00051}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+name}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00050}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+version}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00053}{g\+\_\+virstor\+\_\+metadata\+::md\+\_\+virsize}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00059}{g\+\_\+virstor\+\_\+metadata\+::no}}, \mbox{\hyperlink{g__virstor__md_8h_source_l00058}{g\+\_\+virstor\+\_\+metadata\+::provider}}, and \mbox{\hyperlink{g__virstor__md_8h_source_l00060}{g\+\_\+virstor\+\_\+metadata\+::provsize}}.



Referenced by \mbox{\hyperlink{g__virstor_8c_source_l01017}{write\+\_\+metadata()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=338pt]{d3/dd2/g__virstor__md_8c_ac94876d9c25ebc350671cb02cb57f453_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d3/dd2/g__virstor__md_8c_ac94876d9c25ebc350671cb02cb57f453_icgraph}
\end{center}
\end{figure}
