!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/doc/libzipios++-doc/html/   drwxr-xr-x
Free 13.03 GB of 57.97 GB (22.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     zipinputstream_8cpp_source.html (17.87 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
Zipios++: zipinputstream.cpp Source File
Zipios++
zipinputstream.cpp
Go to the documentation of this file.
1 
2 #include "zipios++/zipios-config.h"
3 
4 #include "zipios++/meta-iostreams.h"
5 
8 
9 using std::istream;
10 
11 namespace zipios {
12 
13 ZipInputStream::ZipInputStream( std::istream &is, std::streampos pos )
14  : istream( 0 ),
15 // SGIs basic_ifstream calls istream with 0, but calls basic_ios constructor first??
16  ifs( 0 )
17 {
18  izf = new ZipInputStreambuf( is.rdbuf(), pos ) ;
19 // this->rdbuf( izf ) ; is replaced by:
20  this->init( izf ) ;
21 }
22 
23 ZipInputStream::ZipInputStream( const std::string &filename, std::streampos pos )
24  : istream( 0 ),
25  ifs( 0 )
26 {
27  ifs = new std::ifstream( filename.c_str(), std::ios::in |std:: ios::binary ) ;
28  izf = new ZipInputStreambuf( ifs->rdbuf(), pos ) ;
29 // this->rdbuf( izf ) ; is replaced by:
30  this->init( izf ) ;
31 }
32 
33 int ZipInputStream::available() {
34  return 1 ; // FIXME: Dummy implementation
35 }
36 
38  izf->closeEntry() ;
39 }
40 
42  izf->close() ;
43 }
44 
45 // ZipLocalEntry *ZipInputStream::createZipCDirEntry( const string
46 // &name ) {}
47 
49  clear() ; // clear eof and other flags.
50  return izf->getNextEntry() ;
51 }
52 
54  // It's ok to call delete with a Null pointer.
55  delete izf ;
56  delete ifs ;
57 }
58 
59 } // namespace
60 
65 /*
66  Zipios++ - a small C++ library that provides easy access to .zip files.
67  Copyright (C) 2000 Thomas Søndergaard
68 
69  This library is free software; you can redistribute it and/or
70  modify it under the terms of the GNU Lesser General Public
71  License as published by the Free Software Foundation; either
72  version 2 of the License, or (at your option) any later version.
73 
74  This library is distributed in the hope that it will be useful,
75  but WITHOUT ANY WARRANTY; without even the implied warranty of
76  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
77  Lesser General Public License for more details.
78 
79  You should have received a copy of the GNU Lesser General Public
80  License along with this library; if not, write to the Free Software
81  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
82 */
void close()
Closes the istream.
ConstEntryPointer getNextEntry()
void closeEntry()
Closes the current entry, and positions the stream read pointer at the beginning of the next entry (i...
ConstEntryPointer getNextEntry()
Opens the next entry in the zip archive and returns a const pointer to a FileEntry object for the ent...
ZipInputStream(istream &is, streampos pos=0)
ZipInputStream constructor.
void closeEntry()
Closes the current entry, and positions the stream read pointer at the beginning of the next entry (i...
void close()
Closes the streambuf.
SimpleSmartPointer is a simple reference counting smart pointer template.
virtual ~ZipInputStream()
Destructor.

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0059 ]--