\doxysection{src/core/bitcomp.c File Reference}
\label{bitcomp_8c}\index{src/core/bitcomp.c@{src/core/bitcomp.c}}


Osmocom bit compression routines.  


{\ttfamily \#include $<$stdint.\+h$>$}\newline
{\ttfamily \#include $<$stdbool.\+h$>$}\newline
{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\newline
{\ttfamily \#include $<$osmocom/core/bitvec.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/bitcomp.\+h$>$}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static int \textbf{ t4\+\_\+rle} (struct \textbf{ bitvec} $\ast$bv, unsigned \textbf{ len}, bool b)
\begin{DoxyCompactList}\small\item\em Make-\/up codes for a given length. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+t4\+\_\+encode} (struct \textbf{ bitvec} $\ast$bv)
\begin{DoxyCompactList}\small\item\em encode bit vector in-\/place using T4 encoding Assumes MSB first encoding. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
static const unsigned \textbf{ t4\+\_\+term} [2][64]
\item 
static const unsigned \textbf{ t4\+\_\+term\+\_\+length} [2][64]
\item 
static const unsigned \textbf{ t4\+\_\+make\+\_\+up\+\_\+length} [2][15]
\item 
static const unsigned \textbf{ t4\+\_\+make\+\_\+up} [2][15]
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Osmocom bit compression routines. 

