\hypertarget{lzio_8h}{
\section{lzio.h File Reference}
\label{lzio_8h}\index{lzio.h@{lzio.h}}
}
{\tt \#include \char`\"{}lua.h\char`\"{}}\par
{\tt \#include \char`\"{}lmem.h\char`\"{}}\par
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \hyperlink{structMbuffer}{Mbuffer}
\item 
struct \hyperlink{structZio}{Zio}
\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{lzio_8h_8341bdc72db5a2f045e18440f9523008}{EOZ}~(-1)
\item 
\#define \hyperlink{lzio_8h_d6566b6148eaf479576be4d863b67e24}{char2int}(c)~cast(int, cast(unsigned char, (c)))
\item 
\#define \hyperlink{lzio_8h_ecca8ea1e6dc0c97b458f77c0e3491de}{zgetc}(z)~(((z) $\rightarrow$ n--)$>$0 ?  char2int($\ast$(z) $\rightarrow$ p++) : luaZ\_\-fill(z))
\item 
\#define \hyperlink{lzio_8h_22367cbe48563efa737ffee3f2774ae2}{luaZ\_\-initbuffer}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, buff)~((buff) $\rightarrow$ buffer = NULL, (buff) $\rightarrow$ buffsize = 0)
\item 
\#define \hyperlink{lzio_8h_a51f632cb0519368a65ada80b71ea1e3}{luaZ\_\-buffer}(buff)~((buff) $\rightarrow$ buffer)
\item 
\#define \hyperlink{lzio_8h_072ede62ba384b9d5fdedbb80eaf3ee1}{luaZ\_\-sizebuffer}(buff)~((buff) $\rightarrow$ buffsize)
\item 
\#define \hyperlink{lzio_8h_26c3aeb9ce93f8559b0a596cf7bb1031}{luaZ\_\-bufflen}(buff)~((buff) $\rightarrow$ n)
\item 
\#define \hyperlink{lzio_8h_53c928283083a162c79e0152048affe2}{luaZ\_\-resetbuffer}(buff)~((buff) $\rightarrow$ n = 0)
\item 
\#define \hyperlink{lzio_8h_b158420acf019b3a45e8ae6e65b51fdb}{luaZ\_\-resizebuffer}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, buff, size)
\item 
\#define \hyperlink{lzio_8h_549577e88246e83e4578cabd2ea030ca}{luaZ\_\-freebuffer}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, buff)~luaZ\_\-resizebuffer(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, buff, 0)
\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef struct \hyperlink{structZio}{Zio} \hyperlink{lzio_8h_3a6756c936bdfffa304b1d808ce7dc17}{ZIO}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
LUAI\_\-FUNC char $\ast$ \hyperlink{lzio_8h_cce04424380e43be98a79bc4dc68c68a}{luaZ\_\-openspace} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structMbuffer}{Mbuffer} $\ast$buff, size\_\-t n)
\item 
LUAI\_\-FUNC void \hyperlink{lzio_8h_182323feac5ab7363dbf654d87f057d5}{luaZ\_\-init} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structZio}{ZIO} $\ast$z, \hyperlink{lua_8h_49bb2f99132c1ae9f80ce809cce40455}{lua\_\-Reader} reader, void $\ast$data)
\item 
LUAI\_\-FUNC size\_\-t \hyperlink{lzio_8h_1f10428fa224047cec9e9b1756a0b733}{luaZ\_\-read} (\hyperlink{structZio}{ZIO} $\ast$z, void $\ast$b, size\_\-t n)
\item 
LUAI\_\-FUNC int \hyperlink{lzio_8h_80b6cdcf7062d7d00a57b24ff3d72052}{luaZ\_\-lookahead} (\hyperlink{structZio}{ZIO} $\ast$z)
\item 
LUAI\_\-FUNC int \hyperlink{lzio_8h_407faec289b7559f210ac784e11a59bb}{luaZ\_\-fill} (\hyperlink{structZio}{ZIO} $\ast$z)
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{lzio_8h_d6566b6148eaf479576be4d863b67e24}{
\index{lzio.h@{lzio.h}!char2int@{char2int}}
\index{char2int@{char2int}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define char2int(c)~cast(int, cast(unsigned char, (c)))}}
\label{lzio_8h_d6566b6148eaf479576be4d863b67e24}


\hypertarget{lzio_8h_8341bdc72db5a2f045e18440f9523008}{
\index{lzio.h@{lzio.h}!EOZ@{EOZ}}
\index{EOZ@{EOZ}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define EOZ~(-1)}}
\label{lzio_8h_8341bdc72db5a2f045e18440f9523008}


\hypertarget{lzio_8h_a51f632cb0519368a65ada80b71ea1e3}{
\index{lzio.h@{lzio.h}!luaZ\_\-buffer@{luaZ\_\-buffer}}
\index{luaZ\_\-buffer@{luaZ\_\-buffer}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaZ\_\-buffer(buff)~((buff) $\rightarrow$ buffer)}}
\label{lzio_8h_a51f632cb0519368a65ada80b71ea1e3}


\hypertarget{lzio_8h_26c3aeb9ce93f8559b0a596cf7bb1031}{
\index{lzio.h@{lzio.h}!luaZ\_\-bufflen@{luaZ\_\-bufflen}}
\index{luaZ\_\-bufflen@{luaZ\_\-bufflen}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaZ\_\-bufflen(buff)~((buff) $\rightarrow$ n)}}
\label{lzio_8h_26c3aeb9ce93f8559b0a596cf7bb1031}


\hypertarget{lzio_8h_549577e88246e83e4578cabd2ea030ca}{
\index{lzio.h@{lzio.h}!luaZ\_\-freebuffer@{luaZ\_\-freebuffer}}
\index{luaZ\_\-freebuffer@{luaZ\_\-freebuffer}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaZ\_\-freebuffer({\bf L}, \/  buff)~luaZ\_\-resizebuffer({\bf L}, buff, 0)}}
\label{lzio_8h_549577e88246e83e4578cabd2ea030ca}


\hypertarget{lzio_8h_22367cbe48563efa737ffee3f2774ae2}{
\index{lzio.h@{lzio.h}!luaZ\_\-initbuffer@{luaZ\_\-initbuffer}}
\index{luaZ\_\-initbuffer@{luaZ\_\-initbuffer}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaZ\_\-initbuffer({\bf L}, \/  buff)~((buff) $\rightarrow$ buffer = NULL, (buff) $\rightarrow$ buffsize = 0)}}
\label{lzio_8h_22367cbe48563efa737ffee3f2774ae2}


\hypertarget{lzio_8h_53c928283083a162c79e0152048affe2}{
\index{lzio.h@{lzio.h}!luaZ\_\-resetbuffer@{luaZ\_\-resetbuffer}}
\index{luaZ\_\-resetbuffer@{luaZ\_\-resetbuffer}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaZ\_\-resetbuffer(buff)~((buff) $\rightarrow$ n = 0)}}
\label{lzio_8h_53c928283083a162c79e0152048affe2}


\hypertarget{lzio_8h_b158420acf019b3a45e8ae6e65b51fdb}{
\index{lzio.h@{lzio.h}!luaZ\_\-resizebuffer@{luaZ\_\-resizebuffer}}
\index{luaZ\_\-resizebuffer@{luaZ\_\-resizebuffer}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaZ\_\-resizebuffer({\bf L}, \/  buff, \/  size)}}
\label{lzio_8h_b158420acf019b3a45e8ae6e65b51fdb}


\textbf{Value:}

\begin{Code}\begin{verbatim}(luaM_reallocvector(L, (buff)->buffer, (buff)->buffsize, size, char), \
        (buff)->buffsize = size)
\end{verbatim}
\end{Code}
\hypertarget{lzio_8h_072ede62ba384b9d5fdedbb80eaf3ee1}{
\index{lzio.h@{lzio.h}!luaZ\_\-sizebuffer@{luaZ\_\-sizebuffer}}
\index{luaZ\_\-sizebuffer@{luaZ\_\-sizebuffer}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaZ\_\-sizebuffer(buff)~((buff) $\rightarrow$ buffsize)}}
\label{lzio_8h_072ede62ba384b9d5fdedbb80eaf3ee1}


\hypertarget{lzio_8h_ecca8ea1e6dc0c97b458f77c0e3491de}{
\index{lzio.h@{lzio.h}!zgetc@{zgetc}}
\index{zgetc@{zgetc}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define zgetc(z)~(((z) $\rightarrow$ n--)$>$0 ?  char2int($\ast$(z) $\rightarrow$ p++) : luaZ\_\-fill(z))}}
\label{lzio_8h_ecca8ea1e6dc0c97b458f77c0e3491de}




\subsection{Typedef Documentation}
\hypertarget{lzio_8h_3a6756c936bdfffa304b1d808ce7dc17}{
\index{lzio.h@{lzio.h}!ZIO@{ZIO}}
\index{ZIO@{ZIO}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf Zio} {\bf ZIO}}}
\label{lzio_8h_3a6756c936bdfffa304b1d808ce7dc17}




\subsection{Function Documentation}
\hypertarget{lzio_8h_407faec289b7559f210ac784e11a59bb}{
\index{lzio.h@{lzio.h}!luaZ\_\-fill@{luaZ\_\-fill}}
\index{luaZ\_\-fill@{luaZ\_\-fill}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC int luaZ\_\-fill ({\bf ZIO} $\ast$ {\em z})}}
\label{lzio_8h_407faec289b7559f210ac784e11a59bb}


\hypertarget{lzio_8h_182323feac5ab7363dbf654d87f057d5}{
\index{lzio.h@{lzio.h}!luaZ\_\-init@{luaZ\_\-init}}
\index{luaZ\_\-init@{luaZ\_\-init}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaZ\_\-init ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf ZIO} $\ast$ {\em z}, \/  {\bf lua\_\-Reader} {\em reader}, \/  void $\ast$ {\em data})}}
\label{lzio_8h_182323feac5ab7363dbf654d87f057d5}


\hypertarget{lzio_8h_80b6cdcf7062d7d00a57b24ff3d72052}{
\index{lzio.h@{lzio.h}!luaZ\_\-lookahead@{luaZ\_\-lookahead}}
\index{luaZ\_\-lookahead@{luaZ\_\-lookahead}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC int luaZ\_\-lookahead ({\bf ZIO} $\ast$ {\em z})}}
\label{lzio_8h_80b6cdcf7062d7d00a57b24ff3d72052}


\hypertarget{lzio_8h_cce04424380e43be98a79bc4dc68c68a}{
\index{lzio.h@{lzio.h}!luaZ\_\-openspace@{luaZ\_\-openspace}}
\index{luaZ\_\-openspace@{luaZ\_\-openspace}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC char$\ast$ luaZ\_\-openspace ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf Mbuffer} $\ast$ {\em buff}, \/  size\_\-t {\em n})}}
\label{lzio_8h_cce04424380e43be98a79bc4dc68c68a}


\hypertarget{lzio_8h_1f10428fa224047cec9e9b1756a0b733}{
\index{lzio.h@{lzio.h}!luaZ\_\-read@{luaZ\_\-read}}
\index{luaZ\_\-read@{luaZ\_\-read}!lzio.h@{lzio.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC size\_\-t luaZ\_\-read ({\bf ZIO} $\ast$ {\em z}, \/  void $\ast$ {\em b}, \/  size\_\-t {\em n})}}
\label{lzio_8h_1f10428fa224047cec9e9b1756a0b733}


