Logo Search packages:      
Sourcecode: qpdf version File versions  Download package


// Write bits into a bit stream.  See BitStream for reading.

#ifndef __THIS_FILE_Q__
#define __THIS_FILE_Q__

class Pipeline;

class BitWriter
    // Write bits to the pipeline.  It is the caller's responsibility
    // to eventually call finish on the pipeline.
    BitWriter(Pipeline* pl);
    void writeBits(unsigned long val, int bits);
    // Force any partial byte to be written to the pipeline.
    void flush();

    Pipeline* pl;
    unsigned char ch;
    unsigned int bit_offset;

#endif // __THIS_FILE_Q__

Generated by  Doxygen 1.6.0   Back to index