\doxysection{LEB Encode and Decode }
\hypertarget{group__leb}{}\label{group__leb}\index{LEB Encode and Decode@{LEB Encode and Decode}}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{group__leb_gab71de89c0df0d9193d19805ef0d3b602}\label{group__leb_gab71de89c0df0d9193d19805ef0d3b602} 
DW\+\_\+\+API int {\bfseries dwarf\+\_\+encode\+\_\+leb128} (\doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\+\_\+\+Unsigned}} dw\+\_\+val, int \texorpdfstring{$\ast$}{*}dw\+\_\+nbytes, char \texorpdfstring{$\ast$}{*}dw\+\_\+space, int dw\+\_\+splen)
\item 
\Hypertarget{group__leb_gad020ad66ecf95652b5580c574dc129b4}\label{group__leb_gad020ad66ecf95652b5580c574dc129b4} 
DW\+\_\+\+API int {\bfseries dwarf\+\_\+encode\+\_\+signed\+\_\+leb128} (\doxymbox{\hyperlink{group__basicdatatypes_gac91d9490d58c8d86a4d5b63ca93ba6dd}{Dwarf\+\_\+\+Signed}} dw\+\_\+val, int \texorpdfstring{$\ast$}{*}dw\+\_\+nbytes, char \texorpdfstring{$\ast$}{*}dw\+\_\+space, int dw\+\_\+splen)
\item 
\Hypertarget{group__leb_gade62fef1f77a64ece0a06f43e59ca488}\label{group__leb_gade62fef1f77a64ece0a06f43e59ca488} 
DW\+\_\+\+API int {\bfseries dwarf\+\_\+decode\+\_\+leb128} (char \texorpdfstring{$\ast$}{*}dw\+\_\+leb, \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\+\_\+\+Unsigned}} \texorpdfstring{$\ast$}{*}dw\+\_\+leblen, \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\+\_\+\+Unsigned}} \texorpdfstring{$\ast$}{*}dw\+\_\+outval, char \texorpdfstring{$\ast$}{*}dw\+\_\+endptr)
\item 
\Hypertarget{group__leb_ga3abc4be847409a49495d46c2178c8821}\label{group__leb_ga3abc4be847409a49495d46c2178c8821} 
DW\+\_\+\+API int {\bfseries dwarf\+\_\+decode\+\_\+signed\+\_\+leb128} (char \texorpdfstring{$\ast$}{*}dw\+\_\+leb, \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\+\_\+\+Unsigned}} \texorpdfstring{$\ast$}{*}dw\+\_\+leblen, \doxymbox{\hyperlink{group__basicdatatypes_gac91d9490d58c8d86a4d5b63ca93ba6dd}{Dwarf\+\_\+\+Signed}} \texorpdfstring{$\ast$}{*}dw\+\_\+outval, char \texorpdfstring{$\ast$}{*}dw\+\_\+endptr)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
These are LEB/\+\+ULEB reading and writing functions heavily used inside libdwarf.

While the DWARF Standard does not mention allowing extra insignificant trailing bytes in a ULEB these functions allow a few such for compilers using extras for alignment in DWARF. 