Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::IO::GzipOutputStream::close (  )  [virtual]

Closes this output stream and releases any system resources associated with this stream.

Reimplemented from Inkscape::IO::BasicOutputStream.

Definition at line 275 of file gzipstream.cpp.

References Inkscape::IO::OutputStream::close(), flush(), and Inkscape::IO::OutputStream::put().

{
    if (closed)
        return;

    flush();

    //# Send the CRC
    uLong outlong = crc;
    for (int n = 0; n < 4; n++)
        {
        destination.put((int)(outlong & 0xff));
        outlong >>= 8;
        }
    //# send the file length
    outlong = totalIn & 0xffffffffL;
    for (int n = 0; n < 4; n++)
        {
        destination.put((int)(outlong & 0xff));
        outlong >>= 8;
        }

    destination.close();
    closed = true;
}


Generated by  Doxygen 1.6.0   Back to index