\doxysection{oggz\+\_\+io.\+h File Reference}
\label{oggz__io_8h}\index{oggz\_io.h@{oggz\_io.h}}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef size\+\_\+t($\ast$ \textbf{ Oggz\+I\+O\+Read}) (void $\ast$user\+\_\+handle, void $\ast$buf, size\+\_\+t n)
\begin{DoxyCompactList}\small\item\em This is the signature of a function which you provide for Oggz to call when it needs to acquire raw input data. \end{DoxyCompactList}\item 
typedef size\+\_\+t($\ast$ \textbf{ Oggz\+I\+O\+Write}) (void $\ast$user\+\_\+handle, void $\ast$buf, size\+\_\+t n)
\begin{DoxyCompactList}\small\item\em This is the signature of a function which you provide for Oggz to call when it needs to output raw data. \end{DoxyCompactList}\item 
typedef int($\ast$ \textbf{ Oggz\+I\+O\+Seek}) (void $\ast$user\+\_\+handle, long offset, int whence)
\begin{DoxyCompactList}\small\item\em This is the signature of a function which you provide for Oggz to call when it needs to seek on the raw input or output data. \end{DoxyCompactList}\item 
typedef long($\ast$ \textbf{ Oggz\+I\+O\+Tell}) (void $\ast$user\+\_\+handle)
\begin{DoxyCompactList}\small\item\em This is the signature of a function which you provide for Oggz to call when it needs to determine the current offset of the raw input or output data. \end{DoxyCompactList}\item 
typedef int($\ast$ \textbf{ Oggz\+I\+O\+Flush}) (void $\ast$user\+\_\+handle)
\begin{DoxyCompactList}\small\item\em This is the signature of a function which you provide for Oggz to call when it needs to flush the output data. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \textbf{ oggz\+\_\+io\+\_\+set\+\_\+read} (\textbf{ O\+G\+GZ} $\ast$oggz, \textbf{ Oggz\+I\+O\+Read} read, void $\ast$user\+\_\+handle)
\begin{DoxyCompactList}\small\item\em Set a function for Oggz to call when it needs to read input data. \end{DoxyCompactList}\item 
void $\ast$ \textbf{ oggz\+\_\+io\+\_\+get\+\_\+read\+\_\+user\+\_\+handle} (\textbf{ O\+G\+GZ} $\ast$oggz)
\begin{DoxyCompactList}\small\item\em Retrieve the user\+\_\+handle associated with the function you have provided for reading input data. \end{DoxyCompactList}\item 
int \textbf{ oggz\+\_\+io\+\_\+set\+\_\+write} (\textbf{ O\+G\+GZ} $\ast$oggz, \textbf{ Oggz\+I\+O\+Write} write, void $\ast$user\+\_\+handle)
\begin{DoxyCompactList}\small\item\em Set a function for Oggz to call when it needs to write output data. \end{DoxyCompactList}\item 
void $\ast$ \textbf{ oggz\+\_\+io\+\_\+get\+\_\+write\+\_\+user\+\_\+handle} (\textbf{ O\+G\+GZ} $\ast$oggz)
\begin{DoxyCompactList}\small\item\em Retrieve the user\+\_\+handle associated with the function you have provided for writing output data. \end{DoxyCompactList}\item 
int \textbf{ oggz\+\_\+io\+\_\+set\+\_\+seek} (\textbf{ O\+G\+GZ} $\ast$oggz, \textbf{ Oggz\+I\+O\+Seek} seek, void $\ast$user\+\_\+handle)
\begin{DoxyCompactList}\small\item\em Set a function for Oggz to call when it needs to seek on its raw data. \end{DoxyCompactList}\item 
void $\ast$ \textbf{ oggz\+\_\+io\+\_\+get\+\_\+seek\+\_\+user\+\_\+handle} (\textbf{ O\+G\+GZ} $\ast$oggz)
\begin{DoxyCompactList}\small\item\em Retrieve the user\+\_\+handle associated with the function you have provided for seeking on input or output data. \end{DoxyCompactList}\item 
int \textbf{ oggz\+\_\+io\+\_\+set\+\_\+tell} (\textbf{ O\+G\+GZ} $\ast$oggz, \textbf{ Oggz\+I\+O\+Tell} tell, void $\ast$user\+\_\+handle)
\begin{DoxyCompactList}\small\item\em Set a function for Oggz to call when it needs to determine the offset within its input data (if O\+G\+G\+Z\+\_\+\+R\+E\+AD) or output data (if O\+G\+G\+Z\+\_\+\+W\+R\+I\+TE). \end{DoxyCompactList}\item 
void $\ast$ \textbf{ oggz\+\_\+io\+\_\+get\+\_\+tell\+\_\+user\+\_\+handle} (\textbf{ O\+G\+GZ} $\ast$oggz)
\begin{DoxyCompactList}\small\item\em Retrieve the user\+\_\+handle associated with the function you have provided for determining the current offset in input or output data. \end{DoxyCompactList}\item 
int \textbf{ oggz\+\_\+io\+\_\+set\+\_\+flush} (\textbf{ O\+G\+GZ} $\ast$oggz, \textbf{ Oggz\+I\+O\+Flush} flush, void $\ast$user\+\_\+handle)
\begin{DoxyCompactList}\small\item\em Set a function for Oggz to call when it needs to flush its output. \end{DoxyCompactList}\item 
void $\ast$ \textbf{ oggz\+\_\+io\+\_\+get\+\_\+flush\+\_\+user\+\_\+handle} (\textbf{ O\+G\+GZ} $\ast$oggz)
\begin{DoxyCompactList}\small\item\em Retrieve the user\+\_\+handle associated with the function you have provided for flushing output. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Overriding the functions used for input and output of raw data.

Oggz\+IO provides a way of overriding the functions Oggz uses to access its raw input or output data. This is required in many situations where the raw stream cannot be accessed via stdio, but can be accessed by other means. This is typically useful within media frameworks, where accessing and moving around in the data is possible only using methods provided by the framework.

The functions you provide for overriding IO will be used by Oggz whenever you call \doxyref{oggz\+\_\+read()}{p.}{group__read__api_ga3ce7a31de5da56375057436c6b5108f2} or \doxyref{oggz\+\_\+write()}{p.}{group__write__api_ga3c97d94ea425d64546adf9c368b71904}. They will also be used repeatedly by Oggz when you call \doxyref{oggz\+\_\+seek()}{p.}{group__seek__api_gaeef4b261d443701207954e5a636d6817}.

\begin{DoxyNote}{Note}
Opening a file with \doxyref{oggz\+\_\+open()}{p.}{oggz_8h_a65197cdd03f755f7ebfabf2fdff4c7db} or \doxyref{oggz\+\_\+open\+\_\+stdio()}{p.}{oggz_8h_ac49e9de0bc4ef1d91b43b13605f98b19} is equivalent to calling \doxyref{oggz\+\_\+new()}{p.}{oggz_8h_a6eb34d123389ae38d993601f9e7bb9d6} and setting stdio based functions for data IO. 
\end{DoxyNote}


\doxysubsection{Typedef Documentation}
\mbox{\label{oggz__io_8h_a0d85b43cb94c30e2afcef3189bf4d634}} 
\index{oggz\_io.h@{oggz\_io.h}!OggzIOFlush@{OggzIOFlush}}
\index{OggzIOFlush@{OggzIOFlush}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{OggzIOFlush}
{\footnotesize\ttfamily typedef int($\ast$ Oggz\+I\+O\+Flush) (void $\ast$user\+\_\+handle)}



This is the signature of a function which you provide for Oggz to call when it needs to flush the output data. 

The behaviour of this function is similar to that of fflush() in stdio.


\begin{DoxyParams}{Parameters}
{\em user\+\_\+handle} & A generic pointer you have provided earlier \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 0} & Success \\
\hline
{\em $<$  0} & An error condition \\
\hline
\end{DoxyRetVals}
\mbox{\label{oggz__io_8h_ae0f7d3aa88d7b0fc24c13ba2b001c499}} 
\index{oggz\_io.h@{oggz\_io.h}!OggzIORead@{OggzIORead}}
\index{OggzIORead@{OggzIORead}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{OggzIORead}
{\footnotesize\ttfamily typedef size\+\_\+t($\ast$ Oggz\+I\+O\+Read) (void $\ast$user\+\_\+handle, void $\ast$buf, size\+\_\+t n)}



This is the signature of a function which you provide for Oggz to call when it needs to acquire raw input data. 


\begin{DoxyParams}{Parameters}
{\em user\+\_\+handle} & A generic pointer you have provided earlier \\
\hline
{\em n} & The length in bytes that Oggz wants to read \\
\hline
{\em buf} & The buffer that you read data into \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em $>$  0} & The number of bytes successfully read into the buffer \\
\hline
{\em 0} & to indicate that there is no more data to read (End of file) \\
\hline
{\em $<$  0} & An error condition \\
\hline
\end{DoxyRetVals}
\mbox{\label{oggz__io_8h_ad47acd67e78e684481a18f7f9913429f}} 
\index{oggz\_io.h@{oggz\_io.h}!OggzIOSeek@{OggzIOSeek}}
\index{OggzIOSeek@{OggzIOSeek}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{OggzIOSeek}
{\footnotesize\ttfamily typedef int($\ast$ Oggz\+I\+O\+Seek) (void $\ast$user\+\_\+handle, long offset, int whence)}



This is the signature of a function which you provide for Oggz to call when it needs to seek on the raw input or output data. 


\begin{DoxyParams}{Parameters}
{\em user\+\_\+handle} & A generic pointer you have provided earlier \\
\hline
{\em offset} & The offset in bytes to seek to \\
\hline
{\em whence} & S\+E\+E\+K\+\_\+\+S\+ET, S\+E\+E\+K\+\_\+\+C\+UR or S\+E\+E\+K\+\_\+\+E\+ND (as for stdio.\+h) \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em $>$= 0} & The offset seeked to \\
\hline
{\em $<$  0} & An error condition\\
\hline
\end{DoxyRetVals}
\begin{DoxyNote}{Note}
If you provide an Oggz\+I\+O\+Seek function, you M\+U\+ST also provide an Oggz\+I\+O\+Tell function, or else all your seeks will fail. 
\end{DoxyNote}
\mbox{\label{oggz__io_8h_a5531d500852299a350ebf05a4895abfb}} 
\index{oggz\_io.h@{oggz\_io.h}!OggzIOTell@{OggzIOTell}}
\index{OggzIOTell@{OggzIOTell}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{OggzIOTell}
{\footnotesize\ttfamily typedef long($\ast$ Oggz\+I\+O\+Tell) (void $\ast$user\+\_\+handle)}



This is the signature of a function which you provide for Oggz to call when it needs to determine the current offset of the raw input or output data. 


\begin{DoxyParams}{Parameters}
{\em user\+\_\+handle} & A generic pointer you have provided earlier \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em $>$= 0} & The offset \\
\hline
{\em $<$  0} & An error condition \\
\hline
\end{DoxyRetVals}
\mbox{\label{oggz__io_8h_ae897337f2b2996435525f75ce06c9b10}} 
\index{oggz\_io.h@{oggz\_io.h}!OggzIOWrite@{OggzIOWrite}}
\index{OggzIOWrite@{OggzIOWrite}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{OggzIOWrite}
{\footnotesize\ttfamily typedef size\+\_\+t($\ast$ Oggz\+I\+O\+Write) (void $\ast$user\+\_\+handle, void $\ast$buf, size\+\_\+t n)}



This is the signature of a function which you provide for Oggz to call when it needs to output raw data. 


\begin{DoxyParams}{Parameters}
{\em user\+\_\+handle} & A generic pointer you have provided earlier \\
\hline
{\em n} & The length in bytes of the data \\
\hline
{\em buf} & A buffer containing data to write \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em $>$= 0} & The number of bytes successfully written (may be less than {\itshape n} if a write error has occurred) \\
\hline
{\em $<$  0} & An error condition \\
\hline
\end{DoxyRetVals}


\doxysubsection{Function Documentation}
\mbox{\label{oggz__io_8h_a6150bee0cc28c68553bdcc6d020f6932}} 
\index{oggz\_io.h@{oggz\_io.h}!oggz\_io\_get\_flush\_user\_handle@{oggz\_io\_get\_flush\_user\_handle}}
\index{oggz\_io\_get\_flush\_user\_handle@{oggz\_io\_get\_flush\_user\_handle}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{oggz\_io\_get\_flush\_user\_handle()}
{\footnotesize\ttfamily void$\ast$ oggz\+\_\+io\+\_\+get\+\_\+flush\+\_\+user\+\_\+handle (\begin{DoxyParamCaption}\item[{\textbf{ O\+G\+GZ} $\ast$}]{oggz }\end{DoxyParamCaption})}



Retrieve the user\+\_\+handle associated with the function you have provided for flushing output. 


\begin{DoxyParams}{Parameters}
{\em oggz} & An O\+G\+GZ handle \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the associated user\+\_\+handle 
\end{DoxyReturn}
\mbox{\label{oggz__io_8h_af5bbd37e9a390e3c282fdc8bfadc43f6}} 
\index{oggz\_io.h@{oggz\_io.h}!oggz\_io\_get\_read\_user\_handle@{oggz\_io\_get\_read\_user\_handle}}
\index{oggz\_io\_get\_read\_user\_handle@{oggz\_io\_get\_read\_user\_handle}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{oggz\_io\_get\_read\_user\_handle()}
{\footnotesize\ttfamily void$\ast$ oggz\+\_\+io\+\_\+get\+\_\+read\+\_\+user\+\_\+handle (\begin{DoxyParamCaption}\item[{\textbf{ O\+G\+GZ} $\ast$}]{oggz }\end{DoxyParamCaption})}



Retrieve the user\+\_\+handle associated with the function you have provided for reading input data. 


\begin{DoxyParams}{Parameters}
{\em oggz} & An O\+G\+GZ handle \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the associated user\+\_\+handle 
\end{DoxyReturn}
\mbox{\label{oggz__io_8h_a718ea817110f0d94d9d6f3a457707a08}} 
\index{oggz\_io.h@{oggz\_io.h}!oggz\_io\_get\_seek\_user\_handle@{oggz\_io\_get\_seek\_user\_handle}}
\index{oggz\_io\_get\_seek\_user\_handle@{oggz\_io\_get\_seek\_user\_handle}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{oggz\_io\_get\_seek\_user\_handle()}
{\footnotesize\ttfamily void$\ast$ oggz\+\_\+io\+\_\+get\+\_\+seek\+\_\+user\+\_\+handle (\begin{DoxyParamCaption}\item[{\textbf{ O\+G\+GZ} $\ast$}]{oggz }\end{DoxyParamCaption})}



Retrieve the user\+\_\+handle associated with the function you have provided for seeking on input or output data. 


\begin{DoxyParams}{Parameters}
{\em oggz} & An O\+G\+GZ handle \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the associated user\+\_\+handle 
\end{DoxyReturn}
\mbox{\label{oggz__io_8h_a54b69e5159280c1224025df925e67b50}} 
\index{oggz\_io.h@{oggz\_io.h}!oggz\_io\_get\_tell\_user\_handle@{oggz\_io\_get\_tell\_user\_handle}}
\index{oggz\_io\_get\_tell\_user\_handle@{oggz\_io\_get\_tell\_user\_handle}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{oggz\_io\_get\_tell\_user\_handle()}
{\footnotesize\ttfamily void$\ast$ oggz\+\_\+io\+\_\+get\+\_\+tell\+\_\+user\+\_\+handle (\begin{DoxyParamCaption}\item[{\textbf{ O\+G\+GZ} $\ast$}]{oggz }\end{DoxyParamCaption})}



Retrieve the user\+\_\+handle associated with the function you have provided for determining the current offset in input or output data. 


\begin{DoxyParams}{Parameters}
{\em oggz} & An O\+G\+GZ handle \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the associated user\+\_\+handle 
\end{DoxyReturn}
\mbox{\label{oggz__io_8h_a024a62f080f1b64c465b0bf475ebfd2e}} 
\index{oggz\_io.h@{oggz\_io.h}!oggz\_io\_get\_write\_user\_handle@{oggz\_io\_get\_write\_user\_handle}}
\index{oggz\_io\_get\_write\_user\_handle@{oggz\_io\_get\_write\_user\_handle}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{oggz\_io\_get\_write\_user\_handle()}
{\footnotesize\ttfamily void$\ast$ oggz\+\_\+io\+\_\+get\+\_\+write\+\_\+user\+\_\+handle (\begin{DoxyParamCaption}\item[{\textbf{ O\+G\+GZ} $\ast$}]{oggz }\end{DoxyParamCaption})}



Retrieve the user\+\_\+handle associated with the function you have provided for writing output data. 


\begin{DoxyParams}{Parameters}
{\em oggz} & An O\+G\+GZ handle \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the associated user\+\_\+handle 
\end{DoxyReturn}
\mbox{\label{oggz__io_8h_af45a2d33c7e17d1b64f794b32d69e7da}} 
\index{oggz\_io.h@{oggz\_io.h}!oggz\_io\_set\_flush@{oggz\_io\_set\_flush}}
\index{oggz\_io\_set\_flush@{oggz\_io\_set\_flush}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{oggz\_io\_set\_flush()}
{\footnotesize\ttfamily int oggz\+\_\+io\+\_\+set\+\_\+flush (\begin{DoxyParamCaption}\item[{\textbf{ O\+G\+GZ} $\ast$}]{oggz,  }\item[{\textbf{ Oggz\+I\+O\+Flush}}]{flush,  }\item[{void $\ast$}]{user\+\_\+handle }\end{DoxyParamCaption})}



Set a function for Oggz to call when it needs to flush its output. 

The meaning of this is similar to that of fflush() in stdio.


\begin{DoxyParams}{Parameters}
{\em oggz} & An O\+G\+GZ handle \\
\hline
{\em flush} & Your flushing function \\
\hline
{\em user\+\_\+handle} & Any arbitrary data you wish to pass to the function \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 0} & Success \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+B\+A\+D\+\_\+\+O\+G\+GZ} & {\itshape oggz} does not refer to an existing O\+G\+GZ \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+I\+N\+V\+A\+L\+ID} & Operation not suitable for this O\+G\+GZ; {\itshape oggz} not open for writing. \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+O\+U\+T\+\_\+\+O\+F\+\_\+\+M\+E\+M\+O\+RY} & Out of memory \\
\hline
\end{DoxyRetVals}
\mbox{\label{oggz__io_8h_a640ecb60fcee9323f1f735ad23f7abc4}} 
\index{oggz\_io.h@{oggz\_io.h}!oggz\_io\_set\_read@{oggz\_io\_set\_read}}
\index{oggz\_io\_set\_read@{oggz\_io\_set\_read}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{oggz\_io\_set\_read()}
{\footnotesize\ttfamily int oggz\+\_\+io\+\_\+set\+\_\+read (\begin{DoxyParamCaption}\item[{\textbf{ O\+G\+GZ} $\ast$}]{oggz,  }\item[{\textbf{ Oggz\+I\+O\+Read}}]{read,  }\item[{void $\ast$}]{user\+\_\+handle }\end{DoxyParamCaption})}



Set a function for Oggz to call when it needs to read input data. 


\begin{DoxyParams}{Parameters}
{\em oggz} & An O\+G\+GZ handle \\
\hline
{\em read} & Your reading function \\
\hline
{\em user\+\_\+handle} & Any arbitrary data you wish to pass to the function \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 0} & Success \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+B\+A\+D\+\_\+\+O\+G\+GZ} & {\itshape oggz} does not refer to an existing O\+G\+GZ \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+I\+N\+V\+A\+L\+ID} & Operation not suitable for this O\+G\+GZ; {\itshape oggz} not open for reading. \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+O\+U\+T\+\_\+\+O\+F\+\_\+\+M\+E\+M\+O\+RY} & Out of memory \\
\hline
\end{DoxyRetVals}
\mbox{\label{oggz__io_8h_a8482fb0783df2621e811c14d642b01fc}} 
\index{oggz\_io.h@{oggz\_io.h}!oggz\_io\_set\_seek@{oggz\_io\_set\_seek}}
\index{oggz\_io\_set\_seek@{oggz\_io\_set\_seek}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{oggz\_io\_set\_seek()}
{\footnotesize\ttfamily int oggz\+\_\+io\+\_\+set\+\_\+seek (\begin{DoxyParamCaption}\item[{\textbf{ O\+G\+GZ} $\ast$}]{oggz,  }\item[{\textbf{ Oggz\+I\+O\+Seek}}]{seek,  }\item[{void $\ast$}]{user\+\_\+handle }\end{DoxyParamCaption})}



Set a function for Oggz to call when it needs to seek on its raw data. 


\begin{DoxyParams}{Parameters}
{\em oggz} & An O\+G\+GZ handle \\
\hline
{\em seek} & Your seeking function \\
\hline
{\em user\+\_\+handle} & Any arbitrary data you wish to pass to the function \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 0} & Success \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+B\+A\+D\+\_\+\+O\+G\+GZ} & {\itshape oggz} does not refer to an existing O\+G\+GZ \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+I\+N\+V\+A\+L\+ID} & Operation not suitable for this O\+G\+GZ \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+O\+U\+T\+\_\+\+O\+F\+\_\+\+M\+E\+M\+O\+RY} & Out of memory\\
\hline
\end{DoxyRetVals}
\begin{DoxyNote}{Note}
If you provide an Oggz\+I\+O\+Seek function, you M\+U\+ST also provide an Oggz\+I\+O\+Tell function, or else all your seeks will fail. 
\end{DoxyNote}
\mbox{\label{oggz__io_8h_ad97da84267d72ab9abf8dbb9ff5e8931}} 
\index{oggz\_io.h@{oggz\_io.h}!oggz\_io\_set\_tell@{oggz\_io\_set\_tell}}
\index{oggz\_io\_set\_tell@{oggz\_io\_set\_tell}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{oggz\_io\_set\_tell()}
{\footnotesize\ttfamily int oggz\+\_\+io\+\_\+set\+\_\+tell (\begin{DoxyParamCaption}\item[{\textbf{ O\+G\+GZ} $\ast$}]{oggz,  }\item[{\textbf{ Oggz\+I\+O\+Tell}}]{tell,  }\item[{void $\ast$}]{user\+\_\+handle }\end{DoxyParamCaption})}



Set a function for Oggz to call when it needs to determine the offset within its input data (if O\+G\+G\+Z\+\_\+\+R\+E\+AD) or output data (if O\+G\+G\+Z\+\_\+\+W\+R\+I\+TE). 


\begin{DoxyParams}{Parameters}
{\em oggz} & An O\+G\+GZ handle \\
\hline
{\em tell} & Your tell function \\
\hline
{\em user\+\_\+handle} & Any arbitrary data you wish to pass to the function \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 0} & Success \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+B\+A\+D\+\_\+\+O\+G\+GZ} & {\itshape oggz} does not refer to an existing O\+G\+GZ \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+I\+N\+V\+A\+L\+ID} & Operation not suitable for this O\+G\+GZ \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+O\+U\+T\+\_\+\+O\+F\+\_\+\+M\+E\+M\+O\+RY} & Out of memory \\
\hline
\end{DoxyRetVals}
\mbox{\label{oggz__io_8h_af92f5b20bb5f247b5302dfc8b4edfbee}} 
\index{oggz\_io.h@{oggz\_io.h}!oggz\_io\_set\_write@{oggz\_io\_set\_write}}
\index{oggz\_io\_set\_write@{oggz\_io\_set\_write}!oggz\_io.h@{oggz\_io.h}}
\doxysubsubsection{oggz\_io\_set\_write()}
{\footnotesize\ttfamily int oggz\+\_\+io\+\_\+set\+\_\+write (\begin{DoxyParamCaption}\item[{\textbf{ O\+G\+GZ} $\ast$}]{oggz,  }\item[{\textbf{ Oggz\+I\+O\+Write}}]{write,  }\item[{void $\ast$}]{user\+\_\+handle }\end{DoxyParamCaption})}



Set a function for Oggz to call when it needs to write output data. 


\begin{DoxyParams}{Parameters}
{\em oggz} & An O\+G\+GZ handle \\
\hline
{\em write} & Your writing function \\
\hline
{\em user\+\_\+handle} & Any arbitrary data you wish to pass to the function \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 0} & Success \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+B\+A\+D\+\_\+\+O\+G\+GZ} & {\itshape oggz} does not refer to an existing O\+G\+GZ \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+I\+N\+V\+A\+L\+ID} & Operation not suitable for this O\+G\+GZ; {\itshape oggz} not open for writing. \\
\hline
{\em O\+G\+G\+Z\+\_\+\+E\+R\+R\+\_\+\+O\+U\+T\+\_\+\+O\+F\+\_\+\+M\+E\+M\+O\+RY} & Out of memory \\
\hline
\end{DoxyRetVals}
