Home
last modified time | relevance | path

Searched refs:FX_FILESIZE (Results 1 – 25 of 42) sorted by relevance

12

/external/pdfium/core/fpdfapi/parser/
Dcpdf_syntax_parser.h32 FX_FILESIZE SavePos() const { return m_Pos; } in SavePos()
33 void RestorePos(FX_FILESIZE pos) { m_Pos = pos; } in RestorePos()
51 FX_FILESIZE limit);
53 FX_FILESIZE FindTag(const CFX_ByteStringC& tag, FX_FILESIZE limit);
56 bool GetCharAt(FX_FILESIZE pos, uint8_t& ch);
68 bool ReadChar(FX_FILESIZE read_pos, uint32_t read_size);
70 bool GetCharAtBackward(FX_FILESIZE pos, uint8_t& ch);
72 bool IsWholeWord(FX_FILESIZE startpos,
73 FX_FILESIZE limit,
79 unsigned int ReadEOLMarkers(FX_FILESIZE pos);
[all …]
Dcpdf_linearized_header.h25 FX_FILESIZE GetFileSize() const { return m_szFileSize; } in GetFileSize()
28 FX_FILESIZE GetLastXRefOffset() const { return m_szLastXRefOffset; } in GetLastXRefOffset()
31 FX_FILESIZE GetFirstPageEndOffset() const { return m_szFirstPageEndOffset; } in GetFirstPageEndOffset()
37 FX_FILESIZE GetHintStart() const { return m_szHintStart; } in GetHintStart()
39 FX_FILESIZE GetHintLength() const { return m_szHintLength; } in GetHintLength()
45 FX_FILESIZE m_szFileSize = 0;
47 FX_FILESIZE m_szLastXRefOffset = 0;
49 FX_FILESIZE m_szFirstPageEndOffset = 0;
51 FX_FILESIZE m_szHintStart = 0;
52 FX_FILESIZE m_szHintLength = 0;
Dcpdf_parser.h54 FX_FILESIZE GetLastXRefOffset() const { return m_LastXRefOffset; } in GetLastXRefOffset()
69 FX_FILESIZE GetObjectPositionOrZero(uint32_t objnum) const;
77 FX_FILESIZE GetObjectOffset(uint32_t objnum) const;
78 FX_FILESIZE GetObjectSize(uint32_t objnum) const;
86 FX_FILESIZE pos,
91 FX_FILESIZE pos,
93 FX_FILESIZE* pResultPos);
101 FX_FILESIZE pos;
109 bool LoadCrossRefV4(FX_FILESIZE pos, FX_FILESIZE streampos, bool bSkip);
133 bool LoadAllCrossRefV4(FX_FILESIZE pos);
[all …]
Dcpdf_data_avail.h88 virtual bool IsDataAvail(FX_FILESIZE offset, uint32_t size) = 0;
94 virtual void AddSegment(FX_FILESIZE offset, uint32_t size) = 0;
102 bool IsDataAvail(FX_FILESIZE offset, uint32_t size, DownloadHints* pHints);
109 void GetLinearizedMainXRefInfo(FX_FILESIZE* pPos, uint32_t* pSize);
131 uint32_t GetObjectSize(uint32_t objnum, FX_FILESIZE& offset);
156 int32_t CheckCrossRefStream(DownloadHints* pHints, FX_FILESIZE& xref_offset);
158 void SetStartOffset(FX_FILESIZE dwOffset);
162 FX_FILESIZE pos,
209 FX_FILESIZE m_dwHeaderOffset;
210 FX_FILESIZE m_dwLastXRefOffset;
[all …]
Dcpdf_syntax_parser.cpp54 bool CPDF_SyntaxParser::GetCharAt(FX_FILESIZE pos, uint8_t& ch) { in GetCharAt()
55 CFX_AutoRestorer<FX_FILESIZE> save_pos(&m_Pos); in GetCharAt()
60 bool CPDF_SyntaxParser::ReadChar(FX_FILESIZE read_pos, uint32_t read_size) { in ReadChar()
61 if (static_cast<FX_FILESIZE>(read_pos + read_size) > m_FileLen) { in ReadChar()
62 if (m_FileLen < static_cast<FX_FILESIZE>(read_size)) { in ReadChar()
77 FX_FILESIZE pos = m_Pos + m_HeaderOffset; in GetNextChar()
82 FX_FILESIZE read_pos = pos; in GetNextChar()
93 bool CPDF_SyntaxParser::GetCharAtBackward(FX_FILESIZE pos, uint8_t& ch) { in GetCharAtBackward()
99 FX_FILESIZE read_pos; in GetCharAtBackward()
100 if (pos < static_cast<FX_FILESIZE>(m_BufSize)) in GetCharAtBackward()
[all …]
Dcpdf_parser.cpp77 FX_FILESIZE CPDF_Parser::GetObjectPositionOrZero(uint32_t objnum) const { in GetObjectPositionOrZero()
170 m_LastXRefOffset = (FX_FILESIZE)FXSYS_atoi64(xrefpos_str.c_str()); in StartParse()
270 FX_FILESIZE CPDF_Parser::GetObjectOffset(uint32_t objnum) const { in GetObjectOffset()
278 FX_FILESIZE pos = GetObjectPositionOrZero(objnum); in GetObjectOffset()
293 FX_FILESIZE SavedPos = m_pSyntax->SavePos(); in VerifyCrossRefV4()
310 bool CPDF_Parser::LoadAllCrossRefV4(FX_FILESIZE xrefpos) { in LoadAllCrossRefV4()
322 std::vector<FX_FILESIZE> CrossRefList; in LoadAllCrossRefV4()
323 std::vector<FX_FILESIZE> XRefStreamList; in LoadAllCrossRefV4()
324 std::set<FX_FILESIZE> seen_xrefpos; in LoadAllCrossRefV4()
365 bool CPDF_Parser::LoadLinearizedAllCrossRefV4(FX_FILESIZE xrefpos, in LoadLinearizedAllCrossRefV4()
[all …]
Dcpdf_hint_tables.h27 FX_FILESIZE* szPageStartPos,
28 FX_FILESIZE* szPageLength,
51 const std::vector<FX_FILESIZE>& szArray);
60 FX_FILESIZE m_szFirstPageObjOffset;
65 std::vector<FX_FILESIZE> m_szPageOffsetArray;
66 std::vector<FX_FILESIZE> m_szSharedObjOffsetArray;
Dcpdf_parser_unittest.cpp27 bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override { in ReadBlock()
35 FX_FILESIZE GetSize() override { return (FX_FILESIZE)total_size_; }; in GetSize()
91 const FX_FILESIZE offsets[] = {0, 15, 61, 154, 296, 374, 450}; in TEST()
126 const FX_FILESIZE offsets[] = {0, 17, 81, 0, 331, 409}; in TEST()
151 const FX_FILESIZE offsets[] = {0, 0, 0, 25325, 0, 0, 0, in TEST()
177 const FX_FILESIZE offsets[] = {0, 0, 0, 25325, 0, 0, 0, in TEST()
202 const FX_FILESIZE offsets[] = {0, 23, 0, 0, 0, 45, 179}; in TEST()
Dcpdf_data_avail.cpp94 uint32_t CPDF_DataAvail::GetObjectSize(uint32_t objnum, FX_FILESIZE& offset) { in GetObjectSize()
155 FX_FILESIZE offset; in AreObjectsAvailable()
342 FX_FILESIZE offset = 0; in GetObject()
590 if ((FX_FILESIZE)dwEnd > m_dwFileLen) in CheckFirstPage()
605 bool CPDF_DataAvail::IsDataAvail(FX_FILESIZE offset, in IsDataAvail()
637 FX_FILESIZE szHintStart = m_pLinearized->GetHintStart(); in CheckHintTables()
638 FX_FILESIZE szHintLength = m_pLinearized->GetHintLength(); in CheckHintTables()
658 FX_FILESIZE pos, in ParseIndirectObjectAt()
661 FX_FILESIZE SavedPos = m_syntaxParser.SavePos(); in ParseIndirectObjectAt()
697 FX_FILESIZE dwSize = m_pFileRead->GetSize(); in IsLinearizedPDF()
[all …]
Dcpdf_linearized_header.cpp42 !IsValidNumericDictionaryValue<FX_FILESIZE>(pDict.get(), "L", 1) || in CreateForObject()
44 !IsValidNumericDictionaryValue<FX_FILESIZE>(pDict.get(), "T", 1) || in CreateForObject()
46 !IsValidNumericDictionaryValue<FX_FILESIZE>(pDict.get(), "E", 1) || in CreateForObject()
/external/pdfium/core/fxcrt/
Dfxcrt_windows.cpp88 FX_FILESIZE CFXCRT_FileAccess_Win64::GetSize() const { in GetSize()
96 return (FX_FILESIZE)size.QuadPart; in GetSize()
99 FX_FILESIZE CFXCRT_FileAccess_Win64::GetPosition() const { in GetPosition()
101 return (FX_FILESIZE)-1; in GetPosition()
106 return (FX_FILESIZE)-1; in GetPosition()
108 return (FX_FILESIZE)newPos.QuadPart; in GetPosition()
111 FX_FILESIZE CFXCRT_FileAccess_Win64::SetPosition(FX_FILESIZE pos) { in SetPosition()
113 return (FX_FILESIZE)-1; in SetPosition()
119 return (FX_FILESIZE)-1; in SetPosition()
121 return (FX_FILESIZE)newPos.QuadPart; in SetPosition()
[all …]
Dfxcrt_posix.cpp64 FX_FILESIZE CFXCRT_FileAccess_Posix::GetSize() const { in GetSize()
73 FX_FILESIZE CFXCRT_FileAccess_Posix::GetPosition() const { in GetPosition()
75 return (FX_FILESIZE)-1; in GetPosition()
79 FX_FILESIZE CFXCRT_FileAccess_Posix::SetPosition(FX_FILESIZE pos) { in SetPosition()
81 return (FX_FILESIZE)-1; in SetPosition()
99 FX_FILESIZE pos) { in ReadPos()
106 if (SetPosition(pos) == (FX_FILESIZE)-1) { in ReadPos()
113 FX_FILESIZE pos) { in WritePos()
117 if (SetPosition(pos) == (FX_FILESIZE)-1) { in WritePos()
130 bool CFXCRT_FileAccess_Posix::Truncate(FX_FILESIZE szFile) { in Truncate()
Dfx_stream.h19 #define FX_FILESIZE int32_t macro
38 #define FX_FILESIZE off_t macro
60 virtual FX_FILESIZE GetPosition() = 0;
69 virtual FX_FILESIZE GetSize() = 0;
72 FX_FILESIZE offset,
83 FX_FILESIZE GetPosition() override;
86 virtual bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) = 0;
87 virtual FX_FILESIZE GetSize() = 0;
103 FX_FILESIZE GetPosition() override = 0;
105 bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override = 0;
[all …]
Dfxcrt_windows.h22 FX_FILESIZE GetSize() const override;
23 FX_FILESIZE GetPosition() const override;
24 FX_FILESIZE SetPosition(FX_FILESIZE pos) override;
27 size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) override;
30 FX_FILESIZE pos) override;
32 bool Truncate(FX_FILESIZE szFile) override;
Dfxcrt_posix.h24 FX_FILESIZE GetSize() const override;
25 FX_FILESIZE GetPosition() const override;
26 FX_FILESIZE SetPosition(FX_FILESIZE pos) override;
29 size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) override;
32 FX_FILESIZE pos) override;
34 bool Truncate(FX_FILESIZE szFile) override;
Dextension.h24 virtual FX_FILESIZE GetSize() const = 0;
25 virtual FX_FILESIZE GetPosition() const = 0;
26 virtual FX_FILESIZE SetPosition(FX_FILESIZE pos) = 0;
29 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) = 0;
32 FX_FILESIZE pos) = 0;
34 virtual bool Truncate(FX_FILESIZE szFile) = 0;
Dfx_xml_parser.cpp78 FX_FILESIZE GetPosition() override;
83 FX_FILESIZE GetBlockOffset() override;
103 FX_FILESIZE CXML_DataBufAcc::GetPosition() { in GetPosition()
104 return static_cast<FX_FILESIZE>(m_dwCurPos); in GetPosition()
130 FX_FILESIZE CXML_DataBufAcc::GetBlockOffset() { in GetBlockOffset()
141 FX_FILESIZE GetPosition() override;
146 FX_FILESIZE GetBlockOffset() override;
155 FX_FILESIZE m_nStart;
170 return m_nStart + static_cast<FX_FILESIZE>(m_dwSize) >= in IsEOF()
174 FX_FILESIZE CXML_DataStmAcc::GetPosition() { in GetPosition()
[all …]
Dfx_extension.cpp70 FX_FILESIZE GetSize() override;
72 FX_FILESIZE GetPosition() override;
73 bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override;
75 bool WriteBlock(const void* buffer, FX_FILESIZE offset, size_t size) override;
90 FX_FILESIZE CFX_CRTFileStream::GetSize() { in GetSize()
98 FX_FILESIZE CFX_CRTFileStream::GetPosition() { in GetPosition()
103 FX_FILESIZE offset, in ReadBlock()
113 FX_FILESIZE offset, in WriteBlock()
132 FX_FILESIZE GetSize() override;
134 FX_FILESIZE GetPosition() override;
[all …]
Dxml_int.h44 FX_FILESIZE m_nOffset;
47 FX_FILESIZE m_nBufferOffset;
/external/pdfium/fpdfsdk/
Dfpdfview.cpp143 FX_FILESIZE GetSize() override;
144 bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override;
155 FX_FILESIZE CPDF_CustomAccess::GetSize() { in GetSize()
160 FX_FILESIZE offset, in ReadBlock()
165 FX_SAFE_FILESIZE newPos = pdfium::base::checked_cast<FX_FILESIZE>(size); in ReadBlock()
168 newPos.ValueOrDie() > static_cast<FX_FILESIZE>(m_FileAccess.m_FileLen)) { in ReadBlock()
184 FX_FILESIZE GetSize() override;
186 FX_FILESIZE GetPosition() override;
187 bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override;
189 bool WriteBlock(const void* buffer, FX_FILESIZE offset, size_t size) override;
[all …]
Dfpdf_dataavail.cpp53 bool IsDataAvail(FX_FILESIZE offset, uint32_t size) override { in IsDataAvail()
71 FX_FILESIZE GetSize() override { return m_pFileAccess->m_FileLen; } in GetSize()
73 bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override { in ReadBlock()
93 void AddSegment(FX_FILESIZE offset, uint32_t size) override { in AddSegment()
/external/pdfium/xfa/fxfa/app/
Dxfa_ffapp.cpp34 FX_FILESIZE GetSize() override;
35 bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override;
50 FX_FILESIZE CXFA_FileRead::GetSize() { in GetSize()
57 bool CXFA_FileRead::ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) { in ReadBlock()
62 FX_FILESIZE dwSize = acc->GetSize(); in ReadBlock()
/external/pdfium/testing/libfuzzer/
Dxfa_codec_fuzzer.h57 bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override { in ReadBlock()
69 FX_FILESIZE GetSize() override { return static_cast<FX_FILESIZE>(m_size); } in GetSize()
/external/pdfium/xfa/fxfa/parser/
Dcxfa_xml_parser.h26 FX_FILESIZE m_nStart[2];
28 FX_FILESIZE m_nElementStart;
/external/pdfium/core/fpdfapi/edit/
Dfpdf_edit_create.cpp49 FX_FILESIZE& offset) { in PDF_CreatorAppendObject()
207 FX_FILESIZE offset = 0; in PDF_CreatorWriteTrailer()
299 FX_FILESIZE offset = 0; in PDF_CreatorWriteEncrypt()
343 void AppendIndex1(CFX_ByteTextBuf& buffer, FX_FILESIZE offset) { in AppendIndex1()
374 int32_t OutputIndex(CFX_FileBufferArchive* pFile, FX_FILESIZE offset) { in OutputIndex()
537 FX_FILESIZE CPDF_ObjectStream::End(CPDF_Creator* pCreator) { in End()
543 FX_FILESIZE ObjOffset = pCreator->m_Offset; in End()
551 FX_FILESIZE& offset = pCreator->m_Offset; in End()
646 FX_FILESIZE objOffset = 0; in EndObjectStream()
667 FX_FILESIZE* offset = pCreator->m_ObjectOffset.GetPtrAt(m_dwTempObjNum); in EndObjectStream()
[all …]

12