diff options
Diffstat (limited to 'core/fpdfapi/edit/cpdf_objectstream.h')
-rw-r--r-- | core/fpdfapi/edit/cpdf_objectstream.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/fpdfapi/edit/cpdf_objectstream.h b/core/fpdfapi/edit/cpdf_objectstream.h index 3e5c5a72a9..5ad6ec8085 100644 --- a/core/fpdfapi/edit/cpdf_objectstream.h +++ b/core/fpdfapi/edit/cpdf_objectstream.h @@ -10,6 +10,7 @@ #include <vector> #include "core/fxcrt/fx_basic.h" +#include "third_party/base/stl_util.h" class CPDF_Creator; class CPDF_Object; @@ -31,6 +32,18 @@ class CPDF_ObjectStream { const uint8_t* pBuffer, uint32_t dwSize); + bool IsNotFull() const; + int32_t ItemCount() const { return pdfium::CollectionSize<int32_t>(m_Items); } + void SetObjectNumber(uint32_t num) { m_dwObjNum = num; } + uint32_t GetObjectNumber() const { return m_dwObjNum; } + int32_t GetIndex() const { return m_index; } + void IncrementIndex() { m_index++; } + + uint32_t GetObjectNumberForItem(int index) const { + return m_Items[index].objnum; + } + + private: std::vector<Item> m_Items; CFX_ByteTextBuf m_Buffer; uint32_t m_dwObjNum; |