Inkscape
Vector Graphics Editor
|
This class is for deflating a gzip-compressed InputStream source. More...
#include <gzipstream.h>
Public Member Functions | |
GzipInputStream (InputStream &sourceStream) | |
~GzipInputStream () override | |
int | available () override |
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. | |
void | close () override |
Closes this input stream and releases any system resources associated with the stream. | |
int | get () override |
Reads the next byte of data from the input stream. | |
![]() | |
BasicInputStream (InputStream &sourceStream) | |
~BasicInputStream () override=default | |
![]() | |
InputStream ()=default | |
Constructor. | |
virtual | ~InputStream ()=default |
Destructor. | |
Private Member Functions | |
bool | load () |
int | fetchMore () |
Private Attributes | |
bool | loaded |
unsigned char * | outputBuf |
unsigned char * | srcBuf |
unsigned long | crc |
unsigned long | srcCrc |
unsigned long | srcSiz |
unsigned long | srcLen |
long | outputBufPos |
long | outputBufLen |
z_stream | d_stream |
Additional Inherited Members | |
![]() | |
bool | closed |
InputStream & | source |
This class is for deflating a gzip-compressed InputStream source.
Definition at line 38 of file gzipstream.h.
Inkscape::IO::GzipInputStream::GzipInputStream | ( | InputStream & | sourceStream | ) |
Definition at line 39 of file gzipstream.cpp.
References d_stream.
|
override |
Definition at line 57 of file gzipstream.cpp.
|
overridevirtual |
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
Reimplemented from Inkscape::IO::BasicInputStream.
Definition at line 75 of file gzipstream.cpp.
References Inkscape::IO::BasicInputStream::closed, outputBuf, outputBufLen, and outputBufPos.
|
overridevirtual |
Closes this input stream and releases any system resources associated with the stream.
Reimplemented from Inkscape::IO::BasicInputStream.
Definition at line 87 of file gzipstream.cpp.
References Inkscape::IO::BasicInputStream::closed, d_stream, outputBuf, and srcBuf.
Referenced by ~GzipInputStream().
|
private |
Definition at line 269 of file gzipstream.cpp.
References crc, d_stream, outputBuf, outputBufLen, and outputBufPos.
|
overridevirtual |
Reads the next byte of data from the input stream.
-1 if EOF
Reimplemented from Inkscape::IO::BasicInputStream.
Definition at line 111 of file gzipstream.cpp.
References Inkscape::IO::BasicInputStream::closed, fetchMore(), load(), loaded, outputBuf, outputBufLen, and outputBufPos.
Referenced by readOpenTypeSVGTable().
|
private |
Definition at line 141 of file gzipstream.cpp.
References crc, d_stream, data, fetchMore(), Inkscape::IO::InputStream::get(), outputBuf, outputBufLen, Inkscape::IO::BasicInputStream::source, srcBuf, srcCrc, srcLen, and srcSiz.
Referenced by get().
|
private |
Definition at line 63 of file gzipstream.h.
Referenced by fetchMore(), and load().
|
private |
Definition at line 70 of file gzipstream.h.
Referenced by close(), fetchMore(), GzipInputStream(), and load().
|
private |
Definition at line 58 of file gzipstream.h.
Referenced by get().
|
private |
Definition at line 60 of file gzipstream.h.
Referenced by available(), close(), fetchMore(), get(), load(), and ~GzipInputStream().
|
private |
Definition at line 68 of file gzipstream.h.
Referenced by available(), fetchMore(), get(), and load().
|
private |
Definition at line 67 of file gzipstream.h.
Referenced by available(), fetchMore(), and get().
|
private |
Definition at line 61 of file gzipstream.h.
Referenced by close(), load(), and ~GzipInputStream().
|
private |
Definition at line 64 of file gzipstream.h.
Referenced by load().
|
private |
Definition at line 66 of file gzipstream.h.
Referenced by load().
|
private |
Definition at line 65 of file gzipstream.h.
Referenced by load().