OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
9 | 9 |
10 #include "../fxcrt/fx_ext.h" | 10 #include "../fxcrt/fx_ext.h" |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 | 513 |
514 CPDF_Stream(FX_LPBYTE pData, FX_DWORD size, CPDF_Dictionary* pDict); | 514 CPDF_Stream(FX_LPBYTE pData, FX_DWORD size, CPDF_Dictionary* pDict); |
515 | 515 |
516 CPDF_Dictionary* GetDict() const | 516 CPDF_Dictionary* GetDict() const |
517 { | 517 { |
518 return m_pDict; | 518 return m_pDict; |
519 } | 519 } |
520 | 520 |
521 void SetData(FX_LPCBYTE pData, FX_DWO
RD size, FX_BOOL bCompressed, FX_BOOL bKeepBuf); | 521 void SetData(FX_LPCBYTE pData, FX_DWO
RD size, FX_BOOL bCompressed, FX_BOOL bKeepBuf); |
522 | 522 |
523 void» » » » » InitStream(FX_BYTE* pData, FX_DW
ORD size, CPDF_Dictionary* pDict); | 523 void» » » » » InitStream(uint8_t* pData, FX_DW
ORD size, CPDF_Dictionary* pDict); |
524 | 524 |
525 void InitStream(IFX_FileRead *pFile,
CPDF_Dictionary* pDict); | 525 void InitStream(IFX_FileRead *pFile,
CPDF_Dictionary* pDict); |
526 | 526 |
527 FX_BOOL Identical(CPDF_Stream* pOther) c
onst; | 527 FX_BOOL Identical(CPDF_Stream* pOther) c
onst; |
528 | 528 |
529 CPDF_StreamFilter* GetStreamFilter(FX_BOOL bRaw = FALSE) const; | 529 CPDF_StreamFilter* GetStreamFilter(FX_BOOL bRaw = FALSE) const; |
530 | 530 |
531 | 531 |
532 | 532 |
533 FX_DWORD GetRawSize() const | 533 FX_DWORD GetRawSize() const |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 const CPDF_Stream* m_pStream; | 650 const CPDF_Stream* m_pStream; |
651 | 651 |
652 CFX_DataFilter* m_pFilter; | 652 CFX_DataFilter* m_pFilter; |
653 | 653 |
654 CFX_BinaryBuf* m_pBuffer; | 654 CFX_BinaryBuf* m_pBuffer; |
655 | 655 |
656 FX_DWORD m_BufOffset; | 656 FX_DWORD m_BufOffset; |
657 | 657 |
658 FX_DWORD m_SrcOffset; | 658 FX_DWORD m_SrcOffset; |
659 | 659 |
660 FX_BYTE» » » » m_SrcBuffer[FPDF_FILTER_BUFFER_SIZE]; | 660 uint8_t» » » » m_SrcBuffer[FPDF_FILTER_BUFFER_SIZE]; |
661 friend class CPDF_Stream; | 661 friend class CPDF_Stream; |
662 }; | 662 }; |
663 class CPDF_Null : public CPDF_Object | 663 class CPDF_Null : public CPDF_Object |
664 { | 664 { |
665 public: | 665 public: |
666 | 666 |
667 static CPDF_Null* Create() | 667 static CPDF_Null* Create() |
668 { | 668 { |
669 return FX_NEW CPDF_Null(); | 669 return FX_NEW CPDF_Null(); |
670 } | 670 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 protected: | 739 protected: |
740 | 740 |
741 CFX_MapPtrToPtr m_IndirectObjs; | 741 CFX_MapPtrToPtr m_IndirectObjs; |
742 | 742 |
743 CPDF_Parser* m_pParser; | 743 CPDF_Parser* m_pParser; |
744 | 744 |
745 FX_DWORD m_LastObjNum; | 745 FX_DWORD m_LastObjNum; |
746 }; | 746 }; |
747 | 747 |
748 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 748 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
OLD | NEW |