%Copyright (C) 2007-2015  Brian Langenberger
%This work is licensed under the
%Creative Commons Attribution-Share Alike 3.0 United States License.
%To view a copy of this license, visit
%http://creativecommons.org/licenses/by-sa/3.0/us/ or send a letter to
%Creative Commons,
%171 Second Street, Suite 300,
%San Francisco, California, 94105, USA.

\chapter{Shorten}
\begin{figure}[h]
\includegraphics{shorten/figures/stream.pdf}
\end{figure}
A Shorten file is almost entirely comprised of three variable-length
data types which we'll call \texttt{unsigned}, \texttt{signed} and
\texttt{long}.
\subsubsection{Reading \texttt{unsigned}}
\label{shorten:read_unsigned}
{\relsize{-1}
  \input{shorten/algorithms/read_unsigned}
}
\subsubsection{Reading \texttt{signed}}
\label{shorten:read_signed}
{\relsize{-1}
  \input{shorten/algorithms/read_signed}
}
\subsubsection{Reading \texttt{long}}
\label{shorten:read_long}
{\relsize{-1}
  \input{shorten/algorithms/read_long}
}

\clearpage

\input{shorten/decode}

\clearpage

\input{shorten/encode}
