zipios::ZipInputStream(3)
zipios::ZipInputStream π
okay bestie, this one lives in the Library Functions Manual section 3, and it is literally the cutest way to read a zip file like it's a stream. let's get into it π«Ά
β¨ NAME β¨
zipios::ZipInputStream β no cap, that's the whole name π
πΈ SYNOPSIS πΈ
#include <zipinputstream.h>
Inherits istream. yes she's an istream girlie, she inherited the whole vibe from her parent π
π Public Member Functions π
ZipInputStream(istream &is, streampos pos=0)β ZipInputStream constructor. (the one that takes a stream)ZipInputStream(const string &filename, streampos pos=0)β ZipInputStream constructor. (the one that takes a filename)int available()β it's giving "how much can I read"void closeEntry()β Closes the current entry, and positions the stream read pointer at the beginning of the next entry (if there is one). π¦void close()β Closes the istream.ConstEntryPointer getNextEntry()β opens up the next entry, bestievirtual ~ZipInputStream()β Destructor. she's virtual, she's iconic, she's saying goodbye π
π Detailed Description π
ZipInputStream is an istream that gets it's input from a zip file. The interface approximates the interface of the Java ZipInputStream. π
Definition at line 20 of file zipinputstream.h.
π§ Constructor & Destructor Documentation π§
zipios::ZipInputStream::ZipInputStream(istream &is, streampos pos = 0)
[explicit] β she doesn't do sneaky implicit conversions, periodt β¨
ZipInputStream constructor.
Parameters
isβistreamfrom which the compressed zip archive can be read.posβ position to reposition theistreamto before reading.
zipios::ZipInputStream::ZipInputStream(const string &filename, streampos pos = 0)
[explicit] β same energy, no implicit nonsense π
ZipInputStream constructor. @filename filename of a valid zip file. π
Parameters
posβ position to reposition theistreamto before reading.
not me noticing the original doc literally inlined the @filename tag instead of formatting it as a parameter β yeah bestie, we're keeping it exactly as it was, facts are facts π
zipios::ZipInputStream::~ZipInputStream()
[virtual] β Destructor. π«Ά
Definition at line 53 of file zipinputstream.cpp.
β Member Function Documentation β
void zipios::ZipInputStream::close()
Closes the istream. bye bye stream, you ate π
Definition at line 41 of file zipinputstream.cpp.
void zipios::ZipInputStream::closeEntry()
Closes the current entry, and positions the stream read pointer at the beginning of the next entry (if there is one). if there's no next one, well, that's a whole mood π
Definition at line 37 of file zipinputstream.cpp.
ConstEntryPointer zipios::ZipInputStream::getNextEntry()
Opens the next entry in the zip archive and returns a const pointer to a FileEntry object for the entry. For new instances this method has to be called once before you can read from the first entry. π so like, don't skip this step, she's the main character of the reading process fr fr
Returns
a const FileEntry * containing information about the (now) current entry. π₯
Definition at line 48 of file zipinputstream.cpp.
π· Author π·
Generated automatically by Doxygen for Zipios++ from the source code. π€β¨
okay that's the whole page bestie, you're so welcome π
this was Zipios++'s very own zipios::ZipInputStream(3) from the Library Functions Manual, dated Tue Mar 24 2020, and it's a wrap β mwah, no notes ππ
π¦ where this page comes from
- ubuntu jammy: libzipios++-dev 0.1.5.9+cvs.2007.04.28-11build1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms