summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_edit/editint.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/fpdf_edit/editint.h')
-rw-r--r--core/fpdfapi/fpdf_edit/editint.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/core/fpdfapi/fpdf_edit/editint.h b/core/fpdfapi/fpdf_edit/editint.h
index 69a64b9aba..a7774050ae 100644
--- a/core/fpdfapi/fpdf_edit/editint.h
+++ b/core/fpdfapi/fpdf_edit/editint.h
@@ -18,26 +18,26 @@ class CPDF_Object;
class CPDF_ObjectStream {
public:
- CPDF_ObjectStream();
-
- FX_BOOL Start();
+ struct Item {
+ uint32_t objnum;
+ FX_STRSIZE offset;
+ };
- int32_t CompressIndirectObject(uint32_t dwObjNum, const CPDF_Object* pObj);
- int32_t CompressIndirectObject(uint32_t dwObjNum,
- const uint8_t* pBuffer,
- uint32_t dwSize);
+ CPDF_ObjectStream();
+ void Start();
FX_FILESIZE End(CPDF_Creator* pCreator);
+ void CompressIndirectObject(uint32_t dwObjNum, const CPDF_Object* pObj);
+ void CompressIndirectObject(uint32_t dwObjNum,
+ const uint8_t* pBuffer,
+ uint32_t dwSize);
- CFX_ArrayTemplate<uint32_t> m_ObjNumArray;
-
+ std::vector<Item> m_Items;
CFX_ByteTextBuf m_Buffer;
uint32_t m_dwObjNum;
int32_t m_index;
-
- protected:
- CFX_ArrayTemplate<uint32_t> m_OffsetArray;
};
+
class CPDF_XRefStream {
public:
struct Index {