\section{dkc\-LZSS.h File Reference}
\label{dkcLZSS_8h}\index{dkcLZSS.h@{dkcLZSS.h}}
LZSS圧縮.  


{\tt \#include \char`\"{}dkc\-OSIndependent.h\char`\"{}}\par


Include dependency graph for dkc\-LZSS.h:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=91pt]{dkcLZSS_8h__incl}
\end{center}
\end{figure}


This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=72pt]{dkcLZSS_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct {\bf dkc\_\-LZSS}
\item 
struct {\bf dkc\_\-LZSS\_\-Header}
\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf LZSS\_\-RING\_\-LENGTH}\ 4096
\begin{CompactList}\small\item\em 環状バッファのソ}スク \item\end{CompactList}\item 
\#define {\bf LZSS\_\-RING\_\-MASK}\ (LZSS\_\-RING\_\-LENGTH-1)
\begin{CompactList}\small\item\em 最長一致長 \item\end{CompactList}\item 
\#define {\bf LZSS\_\-LONGEST\_\-MATCH}\ 16
\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef {\bf dkc\_\-LZSS} {\bf DKC\_\-LZSS}
\item 
typedef {\bf dkc\_\-LZSS\_\-Header} {\bf DKC\_\-LZSS\_\-HEADER}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
DKC\_\-EXTERN {\bf DKC\_\-LZSS} $\ast$WINAPI {\bf dkc\-Alloc\-LZSS} ()
\item 
DKC\_\-EXTERN int WINAPI {\bf dkc\-Free\-LZSS} ({\bf DKC\_\-LZSS} $\ast$$\ast$)
\item 
DKC\_\-EXTERN int WINAPI {\bf dkc\-LZSSDecode} ({\bf DKC\_\-LZSS} $\ast$ptr, {\bf DKC\_\-LZSS\_\-HEADER} $\ast$ph, {\bf BYTE} $\ast$dest, size\_\-t dsize, const {\bf BYTE} $\ast$src, size\_\-t ssize)
\item 
DKC\_\-EXTERN int WINAPI {\bf dkc\-LZSSEncode} ({\bf DKC\_\-LZSS} $\ast$ptr, {\bf DKC\_\-LZSS\_\-HEADER} $\ast$ph, {\bf BYTE} $\ast$dest, size\_\-t dsize, const {\bf BYTE} $\ast$src, size\_\-t ssize)
\item 
DKC\_\-EXTERN {\bf BOOL} WINAPI {\bf dkc\-LZSSIs\-LZSS} ({\bf DKC\_\-LZSS\_\-HEADER} $\ast$p)
\end{CompactItemize}


\subsection{Detailed Description}
LZSS圧縮. 

\begin{Desc}
\item[Since:]2004/04/20  Original:Lee Noriyuki / Reconstruction:d金魚 \end{Desc}


\subsection{Define Documentation}
\index{dkcLZSS.h@{dkc\-LZSS.h}!LZSS_LONGEST_MATCH@{LZSS\_\-LONGEST\_\-MATCH}}
\index{LZSS_LONGEST_MATCH@{LZSS\_\-LONGEST\_\-MATCH}!dkcLZSS.h@{dkc\-LZSS.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LZSS\_\-LONGEST\_\-MATCH\ 16}\label{dkcLZSS_8h_a2}


\index{dkcLZSS.h@{dkc\-LZSS.h}!LZSS_RING_LENGTH@{LZSS\_\-RING\_\-LENGTH}}
\index{LZSS_RING_LENGTH@{LZSS\_\-RING\_\-LENGTH}!dkcLZSS.h@{dkc\-LZSS.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LZSS\_\-RING\_\-LENGTH\ 4096}\label{dkcLZSS_8h_a0}


環状バッファのソ}スク 

\index{dkcLZSS.h@{dkc\-LZSS.h}!LZSS_RING_MASK@{LZSS\_\-RING\_\-MASK}}
\index{LZSS_RING_MASK@{LZSS\_\-RING\_\-MASK}!dkcLZSS.h@{dkc\-LZSS.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LZSS\_\-RING\_\-MASK\ (LZSS\_\-RING\_\-LENGTH-1)}\label{dkcLZSS_8h_a1}


最長一致長 



\subsection{Typedef Documentation}
\index{dkcLZSS.h@{dkc\-LZSS.h}!DKC_LZSS@{DKC\_\-LZSS}}
\index{DKC_LZSS@{DKC\_\-LZSS}!dkcLZSS.h@{dkc\-LZSS.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf dkc\_\-LZSS} {\bf DKC\_\-LZSS}}\label{dkcLZSS_8h_a3}


\index{dkcLZSS.h@{dkc\-LZSS.h}!DKC_LZSS_HEADER@{DKC\_\-LZSS\_\-HEADER}}
\index{DKC_LZSS_HEADER@{DKC\_\-LZSS\_\-HEADER}!dkcLZSS.h@{dkc\-LZSS.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf dkc\_\-LZSS\_\-Header} {\bf DKC\_\-LZSS\_\-HEADER}}\label{dkcLZSS_8h_a4}




\subsection{Function Documentation}
\index{dkcLZSS.h@{dkc\-LZSS.h}!dkcAllocLZSS@{dkcAllocLZSS}}
\index{dkcAllocLZSS@{dkcAllocLZSS}!dkcLZSS.h@{dkc\-LZSS.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DKC\_\-EXTERN {\bf DKC\_\-LZSS}$\ast$ WINAPI dkc\-Alloc\-LZSS ()}\label{dkcLZSS_8h_a5}


\index{dkcLZSS.h@{dkc\-LZSS.h}!dkcFreeLZSS@{dkcFreeLZSS}}
\index{dkcFreeLZSS@{dkcFreeLZSS}!dkcLZSS.h@{dkc\-LZSS.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DKC\_\-EXTERN int WINAPI dkc\-Free\-LZSS ({\bf DKC\_\-LZSS} $\ast$$\ast$)}\label{dkcLZSS_8h_a6}


\index{dkcLZSS.h@{dkc\-LZSS.h}!dkcLZSSDecode@{dkcLZSSDecode}}
\index{dkcLZSSDecode@{dkcLZSSDecode}!dkcLZSS.h@{dkc\-LZSS.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DKC\_\-EXTERN int WINAPI dkc\-LZSSDecode ({\bf DKC\_\-LZSS} $\ast$ {\em ptr}, {\bf DKC\_\-LZSS\_\-HEADER} $\ast$ {\em ph}, {\bf BYTE} $\ast$ {\em dest}, size\_\-t {\em dsize}, const {\bf BYTE} $\ast$ {\em src}, size\_\-t {\em ssize})}\label{dkcLZSS_8h_a7}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ptr\mbox{[}in\mbox{]}\mbox{[}out\mbox{]}}]{\bf dkc\-Alloc\-LZSS()}{\rm (p.\,\pageref{dkcLZSS_8c_a7})}で取得したポインタ \item[{\em ph\mbox{[}out\mbox{]}}]DKC\_\-LZSS\_\-HEADERへのポインタ \item[{\em dest\mbox{[}out\mbox{]}}]デコードされたデータの書き出しバッファへのポインタ \item[{\em dsize\mbox{[}in\mbox{]}}]destのサイズ \item[{\em src\mbox{[}in\mbox{]}}]バッファへのポインタ \item[{\em ssize\mbox{[}in\mbox{]}}]srcのサイズ \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]edk\_\-Resultのどれかが返る。 \end{Desc}
\begin{Desc}
\item[Note:]DKC\_\-LZSS\_\-HEADERのメンバのm\-Origin\-Sizeよりdsizeが小さいとこの関数は失敗します。 \end{Desc}
\index{dkcLZSS.h@{dkc\-LZSS.h}!dkcLZSSEncode@{dkcLZSSEncode}}
\index{dkcLZSSEncode@{dkcLZSSEncode}!dkcLZSS.h@{dkc\-LZSS.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DKC\_\-EXTERN int WINAPI dkc\-LZSSEncode ({\bf DKC\_\-LZSS} $\ast$ {\em ptr}, {\bf DKC\_\-LZSS\_\-HEADER} $\ast$ {\em ph}, {\bf BYTE} $\ast$ {\em dest}, size\_\-t {\em dsize}, const {\bf BYTE} $\ast$ {\em src}, size\_\-t {\em ssize})}\label{dkcLZSS_8h_a8}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ptr\mbox{[}in\mbox{]}\mbox{[}out\mbox{]}}]{\bf dkc\-Alloc\-LZSS()}{\rm (p.\,\pageref{dkcLZSS_8c_a7})}で取得したポインタ \item[{\em ph\mbox{[}out\mbox{]}}]DKC\_\-LZSS\_\-HEADERへのポインタ \item[{\em dest\mbox{[}out\mbox{]}}]LZSSで圧縮されたデータの書き出しバッファへのポインタ \item[{\em dsize\mbox{[}in\mbox{]}}]destのサイズ \item[{\em src\mbox{[}in\mbox{]}}]バッファへのポインタ \item[{\em ssize\mbox{[}in\mbox{]}}]srcのサイズ \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]edk\_\-Resultのどれかが返る。 \end{Desc}
\index{dkcLZSS.h@{dkc\-LZSS.h}!dkcLZSSIsLZSS@{dkcLZSSIsLZSS}}
\index{dkcLZSSIsLZSS@{dkcLZSSIsLZSS}!dkcLZSS.h@{dkc\-LZSS.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DKC\_\-EXTERN {\bf BOOL} WINAPI dkc\-LZSSIs\-LZSS ({\bf DKC\_\-LZSS\_\-HEADER} $\ast$ {\em p})}\label{dkcLZSS_8h_a9}


