aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index ad542c09..4f18cbda 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -544,6 +544,10 @@ class QPDFObjectHandle
int getArrayNItems();
QPDF_DLL
QPDFObjectHandle getArrayItem(int n);
+ // Note: QPDF arrays internally optimize memory for arrays
+ // containing lots of nulls. Calling getArrayAsVector may cause a
+ // lot of memory to be allocated for very large arrays with lots
+ // of nulls.
QPDF_DLL
std::vector<QPDFObjectHandle> getArrayAsVector();
QPDF_DLL
@@ -932,7 +936,6 @@ class QPDFObjectHandle
class ReleaseResolver
{
friend class QPDF_Dictionary;
- friend class QPDF_Array;
friend class QPDF_Stream;
friend class SparseOHArray;
private: