X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/00375592f92f68c4ca3f44d8e839bcfd47adc4e1..22bea944d244ae135f41ebaa3a2e7e10cb925756:/docs/latex/wx/zipstrm.tex diff --git a/docs/latex/wx/zipstrm.tex b/docs/latex/wx/zipstrm.tex index 65e0f3f673..e60b07afd8 100644 --- a/docs/latex/wx/zipstrm.tex +++ b/docs/latex/wx/zipstrm.tex @@ -433,6 +433,9 @@ the wxZipInputStream then returns the entry's data. Eof() becomes true after an attempt has been made to read past the end of the entry's data. When there are no more entries, GetNextEntry() returns NULL and sets Eof(). +Note that in general zip entries are not seekable, and +wxZipInputStream::SeekI() always returns wxInvalidOffset. + \wxheading{Derived from} \helpref{wxArchiveInputStream}{wxarchiveinputstream} @@ -442,9 +445,9 @@ When there are no more entries, GetNextEntry() returns NULL and sets Eof(). \wxheading{Data structures} -{\small \begin{verbatim} -typedef wxZipEntry entry\_type -\end{verbatim}} +\begin{verbatim} +typedef wxZipEntry entry_type +\end{verbatim} \wxheading{See also} @@ -467,6 +470,10 @@ no effect on the stream's data. Compatibility constructor. +When this constructor is used, an emulation of seeking is +switched on for compatibility with previous versions. Note however, +that it is deprecated. + \membersection{wxZipInputStream::CloseEntry}\label{wxzipinputstreamcloseentry} @@ -482,7 +489,7 @@ the current entry first. Returns the zip comment. -This is stored a the end of the zip, therefore when reading a zip +This is stored at the end of the zip, therefore when reading a zip from a non-seekable stream, it returns the empty string until the end of the zip has been reached, i.e. when GetNextEntry() returns NULL.