aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-11-16 17:26:04 +0100
committerm-holger <m-holger@kubitscheck.org>2023-11-18 17:34:17 +0100
commit3237ef70fb77ce323394de1e2793abdb5ae85384 (patch)
tree2b8e132b26017507db151174944651741d3b71d1 /include
parentd11622b6fd8a2d050414c3e6110f3ad68f7502af (diff)
downloadqpdf-3237ef70fb77ce323394de1e2793abdb5ae85384.tar.zst
Add new method Pl_Buffer::getString
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/Pl_Buffer.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/qpdf/Pl_Buffer.hh b/include/qpdf/Pl_Buffer.hh
index 6cf4560a..5def8b4f 100644
--- a/include/qpdf/Pl_Buffer.hh
+++ b/include/qpdf/Pl_Buffer.hh
@@ -64,6 +64,10 @@ class QPDF_DLL_CLASS Pl_Buffer: public Pipeline
QPDF_DLL
void getMallocBuffer(unsigned char** buf, size_t* len);
+ // Same as getBuffer but returns the result as a string.
+ QPDF_DLL
+ std::string getString();
+
private:
class QPDF_DLL_PRIVATE Members
{