Seeking

As with fz_streams, fz_outputs normally move linearly, but in special cases, can be seekable.


\begin{lstlisting}
/*
fz_seek_output: Seek to the specified file position. See ...
...put(fz_context *ctx, fz_output *out, fz_off_t off, int whence);
\end{lstlisting}

Unlike fz_streams, which support fz_tell in all cases, fz_outputs can only fz_tell_output if they are seekable:


\begin{lstlisting}
/*
fz_tell_output: Return the current file position. Throw a...
...s.
*/
fz_off_t fz_tell_output(fz_context *ctx, fz_output *out);
\end{lstlisting}