\hypertarget{RLD_8h}{
\section{RLD.h File Reference}
\label{RLD_8h}\index{RLD.h@{RLD.h}}
}
Run length decoding interface.  


{\tt \#include $<$LDT/BFU.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hyperlink{struct__BFU}{BFU} \hyperlink{RLD_8h_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 interface. 

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


\footnotesize\begin{verbatim}

   CVS $Id: RLD.h,v 1.2 2011/03/25 23:57:13 russell Exp $
\end{verbatim}
\normalsize
 

\subsection{Function Documentation}
\hypertarget{RLD_8h_9d70de252486b22eafe6b0556a5fdfa2}{
\index{RLD.h@{RLD.h}!RLD\_\-decode@{RLD\_\-decode}}
\index{RLD\_\-decode@{RLD\_\-decode}!RLD.h@{RLD.h}}
\subsubsection[{RLD\_\-decode}]{\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_8h_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}


References \_\-bfu\_\-extractR, \_\-bfu\_\-get\_\-pos, and \_\-BFU::val.