\hypertarget{RLD_8c}{
\section{RLD.c File Reference}
\label{RLD_8c}\index{RLD.c@{RLD.c}}
}
Run length decoding routine. 

{\tt \#include \char`\"{}LDT/RLD.h\char`\"{}}\par
{\tt \#include \char`\"{}LDT/BFU.h\char`\"{}}\par
{\tt \#include \char`\"{}ffs.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hyperlink{struct__BFU}{BFU} \hyperlink{RLD_8c_9d70de252486b22eafe6b0556a5fdfa2}{RLD\_\-decode} (\hyperlink{struct__BFU}{BFU} bfu, const unsigned int $\ast$buf, unsigned int $\ast$new\_\-pos, int cnt)
\begin{CompactList}\small\item\em Decodes the run-length encoded value from the input bit stream. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Run length decoding routine. 

\begin{Desc}
\item[Author:]JJRussell - \href{mailto:russell@slac.stanford.edu}{\tt russell@slac.stanford.edu}\end{Desc}


\footnotesize\begin{verbatim}

   CVS $Id: RLD.c,v 1.1 2009/04/30 00:31:28 russell Exp $
\end{verbatim}
\normalsize
 

\subsection{Function Documentation}
\hypertarget{RLD_8c_9d70de252486b22eafe6b0556a5fdfa2}{
\index{RLD.c@{RLD.c}!RLD_decode@{RLD\_\-decode}}
\index{RLD_decode@{RLD\_\-decode}!RLD.c@{RLD.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf BFU} RLD\_\-decode ({\bf BFU} {\em bfu}, const unsigned int $\ast$ {\em buf}, unsigned int $\ast$ {\em new\_\-pos}, int {\em cnt})}}
\label{RLD_8c_9d70de252486b22eafe6b0556a5fdfa2}


Decodes the run-length encoded value from the input bit stream. 

\begin{Desc}
\item[Returns:]The decoded value and updated cur value (only of interest to pass on)\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em bfu}]The decoding context (contains the current word being decoded + the current decoding bit position). \item[{\em buf}]The bit buffer \item[{\em new\_\-pos}]Returned as a pointer to the new position \item[{\em cnt}]The number of bits in the output word. This {\em must\/} match the value used when encoding the value. This must be a value between 1 and 32. \end{description}
\end{Desc}
