diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-08-18 04:13:37 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-08-18 05:02:41 +0200 |
commit | e5f504b6c5dc34337cc0b316b4a7b1fca7e614b1 (patch) | |
tree | 603494c6a8cf784ad1715bfd763787ef4a0cce26 /include | |
parent | a89d8a0677f726ea029a67db164e0116971ffafc (diff) | |
download | qpdf-e5f504b6c5dc34337cc0b316b4a7b1fca7e614b1.tar.zst |
Use SparseOHArray in QPDF_Array
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 5 |
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: |