\hypertarget{BTD_8c}{
\section{BTD.c File Reference}
\label{BTD_8c}\index{BTD.c@{BTD.c}}
}
Binary Tree Encoding routines.  


{\tt \#include $<$PBI/FFS.ih$>$}\par
{\tt \#include $<$LDT/BTD.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned int \hyperlink{BTD_8c_ee649e69b8b765bde2b774d9135228bf}{BTD\_\-wordDecode} (unsigned int w, unsigned int scheme, int $\ast$nbits)
\begin{CompactList}\small\item\em Decodes the bits in {\em w\/} according to {\em scheme\/}. \item\end{CompactList}\item 
unsigned int \hyperlink{BTD_8c_95e8cf51dc64f0bb56fe87692caf6cc0}{BTD\_\-shortDecode} (unsigned short int s, unsigned int scheme, int $\ast$nbits)
\begin{CompactList}\small\item\em Decodes the bits in {\em w\/} according to {\em scheme\/}. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Binary Tree Encoding routines. 

\begin{Desc}
\item[Author:]JJRussell - \href{mailto:russell@slac.stanford.edu}{\tt russell@slac.stanford.edu}\end{Desc}
Routines to encode bit strings using a binary tree



\footnotesize\begin{verbatim}
    CVS $Id
\end{verbatim}
\normalsize
 

\subsection{Function Documentation}
\hypertarget{BTD_8c_95e8cf51dc64f0bb56fe87692caf6cc0}{
\index{BTD.c@{BTD.c}!BTD\_\-shortDecode@{BTD\_\-shortDecode}}
\index{BTD\_\-shortDecode@{BTD\_\-shortDecode}!BTD.c@{BTD.c}}
\subsubsection[{BTD\_\-shortDecode}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int BTD\_\-shortDecode (unsigned short int {\em s}, \/  unsigned int {\em scheme}, \/  int $\ast$ {\em nbits})}}
\label{BTD_8c_95e8cf51dc64f0bb56fe87692caf6cc0}


Decodes the bits in {\em w\/} according to {\em scheme\/}. 

\begin{Desc}
\item[Returns:]The decoded short word\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em s}]The encoded bits \item[{\em scheme}]The encoding scheme \item[{\em nbits}]Returns the number of bits decoded. \end{description}
\end{Desc}
\hypertarget{BTD_8c_ee649e69b8b765bde2b774d9135228bf}{
\index{BTD.c@{BTD.c}!BTD\_\-wordDecode@{BTD\_\-wordDecode}}
\index{BTD\_\-wordDecode@{BTD\_\-wordDecode}!BTD.c@{BTD.c}}
\subsubsection[{BTD\_\-wordDecode}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int BTD\_\-wordDecode (unsigned int {\em w}, \/  unsigned int {\em scheme}, \/  int $\ast$ {\em nbits})}}
\label{BTD_8c_ee649e69b8b765bde2b774d9135228bf}


Decodes the bits in {\em w\/} according to {\em scheme\/}. 

\begin{Desc}
\item[Returns:]The decoded word\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em w}]The encoded bits \item[{\em scheme}]The encoding scheme \item[{\em nbits}]Returns the number of bits decoded. \end{description}
\end{Desc}
