diff options
author | Jay Berkenbilt <ejb@ql.org> | 2020-10-16 20:35:18 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2020-10-16 23:15:39 +0200 |
commit | 18b34a564906c7ef36daefab081b44ebfd9ee64b (patch) | |
tree | ebbbd6805f2efa41e80897f338e4bbf8ca366e36 /include | |
parent | 9a4d3534a10ce1984567a4f79b70cfa2aa024676 (diff) | |
download | qpdf-18b34a564906c7ef36daefab081b44ebfd9ee64b.tar.zst |
InputSource::unreadCh -- only unread most recently read character
This is all that ever worked. The test suite was trying to do
something different from ClosedFileInputSource.
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/InputSource.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qpdf/InputSource.hh b/include/qpdf/InputSource.hh index 896a2559..8850828d 100644 --- a/include/qpdf/InputSource.hh +++ b/include/qpdf/InputSource.hh @@ -83,6 +83,9 @@ class QPDF_DLL_CLASS InputSource virtual void seek(qpdf_offset_t offset, int whence) = 0; virtual void rewind() = 0; virtual size_t read(char* buffer, size_t length) = 0; + + // Note: you can only unread the character you just read. The + // specific character is ignored by some implementations. virtual void unreadCh(char ch) = 0; protected: |