2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00
qpdf/libqpdf/qpdf/Pl_ASCIIHexDecoder.hh
m-holger c916dcf973 Add new protected inline method Pipeline::next
Also, tidy pipeline constructors and make subclasses final where possible.
2024-10-06 15:10:13 +01:00

23 lines
484 B
C++

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