2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-31 17:30:54 +00:00
qpdf/libqpdf/qpdf/Pl_ASCIIHexDecoder.hh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
461 B
C++
Raw Permalink Normal View History

#ifndef PL_ASCIIHEXDECODER_HH
#define PL_ASCIIHEXDECODER_HH
#include <qpdf/Pipeline.hh>
class Pl_ASCIIHexDecoder: public Pipeline
{
public:
Pl_ASCIIHexDecoder(char const* identifier, Pipeline* next);
~Pl_ASCIIHexDecoder() override = default;
void write(unsigned char const* buf, size_t len) override;
void finish() override;
private:
void flush();
char inbuf[3];
size_t pos;
bool eod;
};
#endif // PL_ASCIIHEXDECODER_HH