aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/BufferInputSource.hh2
-rw-r--r--include/qpdf/InputSource.hh6
2 files changed, 5 insertions, 3 deletions
diff --git a/include/qpdf/BufferInputSource.hh b/include/qpdf/BufferInputSource.hh
index 783c436e..954ffe36 100644
--- a/include/qpdf/BufferInputSource.hh
+++ b/include/qpdf/BufferInputSource.hh
@@ -28,6 +28,8 @@
class BufferInputSource: public InputSource
{
public:
+ // If own_memory is true, BufferInputSource will delete the buffer
+ // when finished with it. Otherwise, the caller owns the memory.
QPDF_DLL
BufferInputSource(std::string const& description, Buffer* buf,
bool own_memory = false);
diff --git a/include/qpdf/InputSource.hh b/include/qpdf/InputSource.hh
index 87201e72..2fd95977 100644
--- a/include/qpdf/InputSource.hh
+++ b/include/qpdf/InputSource.hh
@@ -64,9 +64,9 @@ class InputSource
// starting within the range defined by offset and len such that,
// when the input source is positioned at the beginning of that
// sequence, finder.check() returns true. If len is 0, the search
- // proceeds until EOF. If a qualifying pattern these methods
- // return true and leave the input source positioned wherever
- // check() left it at the end of the matching pattern.
+ // proceeds until EOF. If a qualifying pattern is found, these
+ // methods return true and leave the input source positioned
+ // wherever check() left it at the end of the matching pattern.
QPDF_DLL
bool findFirst(char const* start_chars,
qpdf_offset_t offset, size_t len,