/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_syntax_parser.h | 31 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 …]
|
D | cpdf_linearized_header.h | 25 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 …]
|
D | cpdf_syntax_parser.cpp | 40 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 …]
|
D | cpdf_read_validator.cpp | 15 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()
|
D | cpdf_cross_ref_avail.h | 19 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_;
|
D | cpdf_cross_ref_avail_unittest.cpp | 39 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 …]
|
D | cpdf_hint_tables.h | 25 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;
|
D | cpdf_parser.h | 81 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 …]
|
D | cpdf_read_validator_unittest.cpp | 19 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()
|
D | cpdf_read_validator.h | 40 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_;
|
D | cpdf_cross_ref_avail.cpp | 31 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()
|
D | cpdf_parser.cpp | 40 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 …]
|
D | cpdf_seekablemultistream.cpp | 25 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()
|
D | cpdf_linearized_header.cpp | 22 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()
|
D | cpdf_seekablemultistream.h | 25 FX_FILESIZE GetPosition() override; 26 FX_FILESIZE GetSize() override; 28 FX_FILESIZE offset, 34 FX_FILESIZE offset,
|
/external/pdfium/core/fxcrt/ |
D | cfx_fileaccess_windows.cpp | 81 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 …]
|
D | cfx_fileaccess_posix.cpp | 79 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()
|
D | fileaccess_iface.h | 23 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;
|
D | cfx_fileaccess_windows.h | 27 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;
|
D | cfx_fileaccess_posix.h | 28 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;
|
D | cfx_memorystream.cpp | 23 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()
|
D | cfx_seekablestreamproxy.h | 21 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;
|
D | fx_stream.h | 44 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/ |
D | cpdfsdk_helpers.cpp | 67 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/ |
D | invalid_seekable_read_stream.h | 18 FX_FILESIZE offset, 20 FX_FILESIZE GetSize() override; 23 explicit InvalidSeekableReadStream(FX_FILESIZE data_size); 26 const FX_FILESIZE data_size_;
|