Logo Search packages:      
Sourcecode: inkscape version File versions

int Inkscape::IO::GzipInputStream::get (  )  [virtual]

Reads the next byte of data from the input stream. -1 if EOF

Reimplemented from Inkscape::IO::BasicInputStream.

Definition at line 84 of file gzipstream.cpp.

{
    if (closed)
        return -1;
    if (!loaded && !load())
        {
        closed=true;
        return -1;
        }

    loaded = true;

    if (outputBufPos >= outputBufLen)
        return -1;
        
    int ch = (int) outputBuf[outputBufPos++];
    return ch;
}


Generated by  Doxygen 1.6.0   Back to index