summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_cross_ref_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/parser/cpdf_cross_ref_table.h')
-rw-r--r--core/fpdfapi/parser/cpdf_cross_ref_table.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_cross_ref_table.h b/core/fpdfapi/parser/cpdf_cross_ref_table.h
index 9631216b0c..d8bda7125f 100644
--- a/core/fpdfapi/parser/cpdf_cross_ref_table.h
+++ b/core/fpdfapi/parser/cpdf_cross_ref_table.h
@@ -60,7 +60,12 @@ class CPDF_CrossRefTable {
void Update(std::unique_ptr<CPDF_CrossRefTable> new_cross_ref);
- void ShrinkObjectMap(uint32_t objnum);
+ void ShrinkObjectMap(uint32_t max_size);
+
+ // The total number of entries in the file’s cross-reference table, as
+ // defined by the combination of the original section and all update
+ // section.
+ uint32_t GetSize() const;
private:
void UpdateInfo(std::map<uint32_t, ObjectInfo>&& new_objects_info);