Home
last modified time | relevance | path

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

123

/external/pdfium/core/fpdfapi/parser/
Dcpdf_syntax_parser.h31 FX_FILESIZE HeaderOffset);
36 FX_FILESIZE HeaderOffset);
43 FX_FILESIZE GetPos() const { return m_Pos; } in GetPos()
44 void SetPos(FX_FILESIZE pos);
54 bool BackwardsSearchToWord(ByteStringView word, FX_FILESIZE limit);
55 FX_FILESIZE FindTag(ByteStringView tag);
57 bool GetCharAt(FX_FILESIZE pos, uint8_t& ch);
73 FX_FILESIZE GetDocumentSize() const;
85 bool ReadBlockAt(FX_FILESIZE read_pos);
86 bool GetCharAtBackward(FX_FILESIZE pos, uint8_t* ch);
[all …]
Dcpdf_linearized_header.h25 FX_FILESIZE GetFileSize() const { return m_szFileSize; } in GetFileSize()
28 FX_FILESIZE GetMainXRefTableFirstEntryOffset() const { in GetMainXRefTableFirstEntryOffset()
33 FX_FILESIZE GetFirstPageEndOffset() const { return m_szFirstPageEndOffset; } in GetFirstPageEndOffset()
37 FX_FILESIZE GetLastXRefOffset() const { return m_szLastXRefOffset; } in GetLastXRefOffset()
41 FX_FILESIZE GetHintStart() const { return m_szHintStart; } in GetHintStart()
46 FX_FILESIZE szLastXRefOffset);
49 const FX_FILESIZE m_szFileSize;
51 const FX_FILESIZE m_szMainXRefTableFirstEntryOffset;
53 const FX_FILESIZE m_szFirstPageEndOffset;
55 const FX_FILESIZE m_szLastXRefOffset;
[all …]
Dcpdf_syntax_parser.cpp40 FX_FILESIZE part_offset, in ReadableSubStream()
41 FX_FILESIZE part_size) in ReadableSubStream()
50 FX_FILESIZE offset, in ReadBlockAtOffset()
62 FX_FILESIZE GetSize() override { return m_PartSize; } in GetSize()
66 FX_FILESIZE m_PartOffset;
67 FX_FILESIZE m_PartSize;
78 FX_FILESIZE HeaderOffset) { in CreateForTesting()
92 FX_FILESIZE HeaderOffset) in CPDF_SyntaxParser()
101 bool CPDF_SyntaxParser::GetCharAt(FX_FILESIZE pos, uint8_t& ch) { in GetCharAt()
102 AutoRestorer<FX_FILESIZE> save_pos(&m_Pos); in GetCharAt()
[all …]
Dcpdf_read_validator.cpp15 constexpr FX_FILESIZE kAlignBlockValue = CPDF_Stream::kFileBufSize;
17 FX_FILESIZE AlignDown(FX_FILESIZE offset) { in AlignDown()
21 FX_FILESIZE AlignUp(FX_FILESIZE offset) { in AlignUp()
61 FX_FILESIZE offset, in ReadBlockAtOffset()
81 FX_FILESIZE CPDF_ReadValidator::GetSize() { in GetSize()
85 void CPDF_ReadValidator::ScheduleDownload(FX_FILESIZE offset, size_t size) { in ScheduleDownload()
90 const FX_FILESIZE start_segment_offset = AlignDown(offset); in ScheduleDownload()
109 bool CPDF_ReadValidator::IsDataRangeAvailable(FX_FILESIZE offset, in IsDataRangeAvailable()
126 FX_FILESIZE offset, in CheckDataRangeAndRequestIfUnavailable()
140 file_size_, static_cast<FX_FILESIZE>(end_segment_offset.ValueOrDie())); in CheckDataRangeAndRequestIfUnavailable()
Dcpdf_cross_ref_avail.h19 FX_FILESIZE last_crossref_offset);
22 FX_FILESIZE last_crossref_offset() const { return last_crossref_offset_; } in last_crossref_offset()
41 void AddCrossRefForCheck(FX_FILESIZE crossref_offset);
46 const FX_FILESIZE last_crossref_offset_ = 0;
50 FX_FILESIZE current_offset_ = 0;
51 std::queue<FX_FILESIZE> cross_refs_for_check_;
52 std::set<FX_FILESIZE> registered_crossrefs_;
Dcpdf_cross_ref_avail_unittest.cpp39 const FX_FILESIZE last_crossref_offset = 0; in TEST()
56 const FX_FILESIZE last_crossref_offset = 0; in TEST()
74 const FX_FILESIZE last_crossref_offset = 70000; in TEST()
91 const FX_FILESIZE last_crossref_offset = 0; in TEST()
113 const FX_FILESIZE last_crossref_offset = 0; in TEST()
125 const FX_FILESIZE last_crossref_offset = 0; in TEST()
173 const FX_FILESIZE last_crossref_offset = static_cast<FX_FILESIZE>(cur_offset); in TEST()
217 const FX_FILESIZE last_crossref_offset = static_cast<FX_FILESIZE>(cur_offset); in TEST()
266 const FX_FILESIZE last_crossref_offset = last_v4_table_offset; in TEST()
280 const FX_FILESIZE last_crossref_offset = 0; in TEST()
[all …]
Dcpdf_hint_tables.h25 FX_FILESIZE m_szOffset = 0;
41 void set_page_offset(FX_FILESIZE offset) { m_szOffset = offset; } in set_page_offset()
42 FX_FILESIZE page_offset() const { return m_szOffset; } in page_offset()
62 FX_FILESIZE m_szOffset = 0;
80 FX_FILESIZE* szPageStartPos,
81 FX_FILESIZE* szPageLength,
93 FX_FILESIZE GetFirstPageObjOffset() const { return m_szFirstPageObjOffset; } in GetFirstPageObjOffset()
100 FX_FILESIZE HintsOffsetToFileOffset(uint32_t hints_offset) const;
109 FX_FILESIZE m_szFirstPageObjOffset;
Dcpdf_parser.h81 FX_FILESIZE GetLastXRefOffset() const { return m_LastXRefOffset; } in GetLastXRefOffset()
95 FX_FILESIZE GetObjectPositionOrZero(uint32_t objnum) const;
105 RetainPtr<CPDF_Object> ParseIndirectObjectAt(FX_FILESIZE pos,
127 bool LoadCrossRefV4(FX_FILESIZE pos, bool bSkip);
145 FX_FILESIZE ParseStartXRef();
146 bool LoadAllCrossRefV4(FX_FILESIZE xref_offset);
147 bool LoadAllCrossRefV5(FX_FILESIZE xref_offset);
148 bool LoadCrossRefV5(FX_FILESIZE* pos, bool bMainXRef);
152 bool LoadLinearizedAllCrossRefV4(FX_FILESIZE main_xref_offset);
153 bool LoadLinearizedAllCrossRefV5(FX_FILESIZE main_xref_offset);
[all …]
Dcpdf_read_validator_unittest.cpp19 std::pair<FX_FILESIZE, FX_FILESIZE> MakeRange(uint32_t start, uint32_t end) { in MakeRange()
20 return std::pair<FX_FILESIZE, FX_FILESIZE>(start, end); in MakeRange()
28 bool IsDataAvail(FX_FILESIZE offset, size_t size) override { in IsDataAvail()
30 available_range_.second >= static_cast<FX_FILESIZE>(offset + size); in IsDataAvail()
33 void SetAvailableRange(const std::pair<FX_FILESIZE, FX_FILESIZE>& range) { in SetAvailableRange() argument
42 std::pair<FX_FILESIZE, FX_FILESIZE> available_range_;
50 void AddSegment(FX_FILESIZE offset, size_t size) override { in AddSegment()
55 const std::pair<FX_FILESIZE, FX_FILESIZE>& GetLastRequstedRange() const { in GetLastRequstedRange()
62 std::pair<FX_FILESIZE, FX_FILESIZE> last_requested_range_;
157 read_buffer.data(), std::numeric_limits<FX_FILESIZE>::max() - 1, in TEST()
Dcpdf_read_validator.h40 bool CheckDataRangeAndRequestIfUnavailable(FX_FILESIZE offset, size_t size);
45 FX_FILESIZE offset,
47 FX_FILESIZE GetSize() override;
55 void ScheduleDownload(FX_FILESIZE offset, size_t size);
56 bool IsDataRangeAvailable(FX_FILESIZE offset, size_t size) const;
66 const FX_FILESIZE file_size_;
Dcpdf_cross_ref_avail.cpp31 FX_FILESIZE last_crossref_offset) in CPDF_CrossRefAvail()
157 pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>(xrefpos)) in CheckCrossRefV4Trailer()
158 AddCrossRefForCheck(static_cast<FX_FILESIZE>(xrefpos)); in CheckCrossRefV4Trailer()
163 pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>( in CheckCrossRefV4Trailer()
165 AddCrossRefForCheck(static_cast<FX_FILESIZE>(stream_xref_offset)); in CheckCrossRefV4Trailer()
194 pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>(xrefpos)) in CheckCrossRefStream()
195 AddCrossRefForCheck(static_cast<FX_FILESIZE>(xrefpos)); in CheckCrossRefStream()
202 void CPDF_CrossRefAvail::AddCrossRefForCheck(FX_FILESIZE crossref_offset) { in AddCrossRefForCheck()
Dcpdf_parser.cpp40 constexpr FX_FILESIZE kPDFHeaderSize = 9;
83 FX_FILESIZE CPDF_Parser::GetObjectPositionOrZero(uint32_t objnum) const { in GetObjectPositionOrZero()
117 const Optional<FX_FILESIZE> header_offset = GetHeaderOffset(validator); in InitSyntaxParser()
214 FX_FILESIZE CPDF_Parser::ParseStartXRef() { in ParseStartXRef()
269 FX_FILESIZE SavedPos = m_pSyntax->GetPos(); in VerifyCrossRefV4()
285 bool CPDF_Parser::LoadAllCrossRefV4(FX_FILESIZE xref_offset) { in LoadAllCrossRefV4()
298 std::vector<FX_FILESIZE> xref_stream_list{ in LoadAllCrossRefV4()
300 std::vector<FX_FILESIZE> xref_list{xref_offset}; in LoadAllCrossRefV4()
301 std::set<FX_FILESIZE> seen_xref_offset{xref_offset}; in LoadAllCrossRefV4()
345 bool CPDF_Parser::LoadLinearizedAllCrossRefV4(FX_FILESIZE main_xref_offset) { in LoadLinearizedAllCrossRefV4()
[all …]
Dcpdf_seekablemultistream.cpp25 FX_FILESIZE CPDF_SeekableMultiStream::GetSize() { in GetSize()
33 FX_FILESIZE offset, in ReadBlockAtOffset()
39 FX_FILESIZE dwSize = acc->GetSize(); in ReadBlockAtOffset()
67 FX_FILESIZE CPDF_SeekableMultiStream::GetPosition() { in GetPosition()
81 FX_FILESIZE offset, in WriteBlockAtOffset()
Dcpdf_linearized_header.cpp22 constexpr FX_FILESIZE kLinearizedHeaderOffset = 9;
42 FX_FILESIZE document_size) { in IsLinearizedHeaderValid()
64 !IsValidNumericDictionaryValue<FX_FILESIZE>(pDict.Get(), "L", 1) || in Parse()
66 !IsValidNumericDictionaryValue<FX_FILESIZE>(pDict.Get(), "T", 1) || in Parse()
68 !IsValidNumericDictionaryValue<FX_FILESIZE>(pDict.Get(), "E", 1) || in Parse()
87 FX_FILESIZE szLastXRefOffset) in CPDF_LinearizedHeader()
Dcpdf_seekablemultistream.h25 FX_FILESIZE GetPosition() override;
26 FX_FILESIZE GetSize() override;
28 FX_FILESIZE offset,
34 FX_FILESIZE offset,
/external/pdfium/core/fxcrt/
Dcfx_fileaccess_windows.cpp81 FX_FILESIZE CFX_FileAccess_Windows::GetSize() const { in GetSize()
89 return (FX_FILESIZE)size.QuadPart; in GetSize()
92 FX_FILESIZE CFX_FileAccess_Windows::GetPosition() const { in GetPosition()
94 return (FX_FILESIZE)-1; in GetPosition()
99 return (FX_FILESIZE)-1; in GetPosition()
101 return (FX_FILESIZE)newPos.QuadPart; in GetPosition()
104 FX_FILESIZE CFX_FileAccess_Windows::SetPosition(FX_FILESIZE pos) { in SetPosition()
106 return (FX_FILESIZE)-1; in SetPosition()
112 return (FX_FILESIZE)-1; in SetPosition()
114 return (FX_FILESIZE)newPos.QuadPart; in SetPosition()
[all …]
Dcfx_fileaccess_posix.cpp79 FX_FILESIZE CFX_FileAccess_Posix::GetSize() const { in GetSize()
88 FX_FILESIZE CFX_FileAccess_Posix::GetPosition() const { in GetPosition()
90 return (FX_FILESIZE)-1; in GetPosition()
94 FX_FILESIZE CFX_FileAccess_Posix::SetPosition(FX_FILESIZE pos) { in SetPosition()
96 return (FX_FILESIZE)-1; in SetPosition()
114 FX_FILESIZE pos) { in ReadPos()
121 if (SetPosition(pos) == (FX_FILESIZE)-1) { in ReadPos()
128 FX_FILESIZE pos) { in WritePos()
132 if (SetPosition(pos) == (FX_FILESIZE)-1) { in WritePos()
145 bool CFX_FileAccess_Posix::Truncate(FX_FILESIZE szFile) { in Truncate()
Dfileaccess_iface.h23 virtual FX_FILESIZE GetSize() const = 0;
24 virtual FX_FILESIZE GetPosition() const = 0;
25 virtual FX_FILESIZE SetPosition(FX_FILESIZE pos) = 0;
28 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) = 0;
31 FX_FILESIZE pos) = 0;
33 virtual bool Truncate(FX_FILESIZE szFile) = 0;
Dcfx_fileaccess_windows.h27 FX_FILESIZE GetSize() const override;
28 FX_FILESIZE GetPosition() const override;
29 FX_FILESIZE SetPosition(FX_FILESIZE pos) override;
32 size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) override;
35 FX_FILESIZE pos) override;
37 bool Truncate(FX_FILESIZE szFile) override;
Dcfx_fileaccess_posix.h28 FX_FILESIZE GetSize() const override;
29 FX_FILESIZE GetPosition() const override;
30 FX_FILESIZE SetPosition(FX_FILESIZE pos) override;
33 size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) override;
36 FX_FILESIZE pos) override;
38 bool Truncate(FX_FILESIZE szFile) override;
Dcfx_memorystream.cpp23 FX_FILESIZE CFX_MemoryStream::GetSize() { in GetSize()
24 return static_cast<FX_FILESIZE>(m_nCurSize); in GetSize()
31 FX_FILESIZE CFX_MemoryStream::GetPosition() { in GetPosition()
32 return static_cast<FX_FILESIZE>(m_nCurPos); in GetPosition()
40 FX_FILESIZE offset, in ReadBlockAtOffset()
69 FX_FILESIZE offset, in WriteBlockAtOffset()
Dcfx_seekablestreamproxy.h21 FX_FILESIZE GetSize(); // Estimate under worst possible expansion.
38 FX_FILESIZE GetPosition();
39 void Seek(From eSeek, FX_FILESIZE iOffset);
44 FX_FILESIZE m_iPosition;
Dfx_stream.h44 virtual FX_FILESIZE CurrentOffset() const = 0;
49 virtual FX_FILESIZE GetSize() = 0;
63 FX_FILESIZE offset,
74 virtual FX_FILESIZE GetPosition();
78 FX_FILESIZE offset,
/external/pdfium/fpdfsdk/
Dcpdfsdk_helpers.cpp67 FX_FILESIZE GetSize() override;
69 FX_FILESIZE GetPosition() override;
71 FX_FILESIZE offset,
75 FX_FILESIZE offset,
79 void SetPosition(FX_FILESIZE pos) { m_nCurPos = pos; } in SetPosition()
86 FX_FILESIZE m_nCurPos;
99 FX_FILESIZE FPDF_FileHandlerContext::GetSize() { in GetSize()
101 return (FX_FILESIZE)m_pFS->GetSize(m_pFS->clientData); in GetSize()
109 FX_FILESIZE FPDF_FileHandlerContext::GetPosition() { in GetPosition()
114 FX_FILESIZE offset, in ReadBlockAtOffset()
[all …]
/external/pdfium/testing/
Dinvalid_seekable_read_stream.h18 FX_FILESIZE offset,
20 FX_FILESIZE GetSize() override;
23 explicit InvalidSeekableReadStream(FX_FILESIZE data_size);
26 const FX_FILESIZE data_size_;

123