Home
last modified time | relevance | path

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

12

/external/pdfium/core/src/fxcrt/
Dfxcrt_platforms.cpp70 FX_FILESIZE CFXCRT_FileAccess_CRT::GetSize() const { in GetSize()
74 FX_FILESIZE pos = (FX_FILESIZE)FXSYS_ftell(m_hFile); in GetSize()
76 FX_FILESIZE size = (FX_FILESIZE)FXSYS_ftell(m_hFile); in GetSize()
80 FX_FILESIZE CFXCRT_FileAccess_CRT::GetPosition() const { in GetPosition()
82 return (FX_FILESIZE)-1; in GetPosition()
84 return (FX_FILESIZE)FXSYS_ftell(m_hFile); in GetPosition()
86 FX_FILESIZE CFXCRT_FileAccess_CRT::SetPosition(FX_FILESIZE pos) { in SetPosition()
88 return (FX_FILESIZE)-1; in SetPosition()
91 return (FX_FILESIZE)FXSYS_ftell(m_hFile); in SetPosition()
107 FX_FILESIZE pos) { in ReadPos()
[all …]
Dfxcrt_windows.cpp81 FX_FILESIZE CFXCRT_FileAccess_Win64::GetSize() const { in GetSize()
89 return (FX_FILESIZE)size.QuadPart; in GetSize()
91 FX_FILESIZE CFXCRT_FileAccess_Win64::GetPosition() const { in GetPosition()
93 return (FX_FILESIZE)-1; in GetPosition()
98 return (FX_FILESIZE)-1; in GetPosition()
100 return (FX_FILESIZE)newPos.QuadPart; in GetPosition()
102 FX_FILESIZE CFXCRT_FileAccess_Win64::SetPosition(FX_FILESIZE pos) { in SetPosition()
104 return (FX_FILESIZE)-1; in SetPosition()
110 return (FX_FILESIZE)-1; in SetPosition()
112 return (FX_FILESIZE)newPos.QuadPart; in SetPosition()
[all …]
Dfxcrt_posix.cpp60 FX_FILESIZE CFXCRT_FileAccess_Posix::GetSize() const { in GetSize()
69 FX_FILESIZE CFXCRT_FileAccess_Posix::GetPosition() const { in GetPosition()
71 return (FX_FILESIZE)-1; in GetPosition()
75 FX_FILESIZE CFXCRT_FileAccess_Posix::SetPosition(FX_FILESIZE pos) { in SetPosition()
77 return (FX_FILESIZE)-1; in SetPosition()
95 FX_FILESIZE pos) { in ReadPos()
102 if (SetPosition(pos) == (FX_FILESIZE)-1) { in ReadPos()
109 FX_FILESIZE pos) { in WritePos()
113 if (SetPosition(pos) == (FX_FILESIZE)-1) { in WritePos()
124 FX_BOOL CFXCRT_FileAccess_Posix::Truncate(FX_FILESIZE szFile) { in Truncate()
Dxml_int.h26 FX_FILESIZE GetPosition() override { return (FX_FILESIZE)m_dwCurPos; } in GetPosition()
40 FX_FILESIZE GetBlockOffset() override { return 0; } in GetBlockOffset()
58 return m_nStart + (FX_FILESIZE)m_dwSize >= m_pFileRead->GetSize(); in IsEOF()
60 FX_FILESIZE GetPosition() override { in GetPosition()
61 return m_nStart + (FX_FILESIZE)m_dwSize; in GetPosition()
68 FX_FILESIZE nLength = m_pFileRead->GetSize();
69 m_nStart += (FX_FILESIZE)m_dwSize;
73 static const FX_FILESIZE FX_XMLDATASTREAM_BufferSize = 32 * 1024;
83 FX_FILESIZE GetBlockOffset() override { return m_nStart; } in GetBlockOffset()
88 FX_FILESIZE m_nStart;
[all …]
Dextension.h22 virtual FX_FILESIZE GetSize() const = 0;
23 virtual FX_FILESIZE GetPosition() const = 0;
24 virtual FX_FILESIZE SetPosition(FX_FILESIZE pos) = 0;
27 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) = 0;
30 FX_FILESIZE pos) = 0;
32 virtual FX_BOOL Truncate(FX_FILESIZE szFile) = 0;
78 FX_FILESIZE GetSize() override;
80 FX_FILESIZE GetPosition() override;
81 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override;
84 FX_FILESIZE offset,
[all …]
Dfxcrt_windows.h23 FX_FILESIZE GetSize() const override;
24 FX_FILESIZE GetPosition() const override;
25 FX_FILESIZE SetPosition(FX_FILESIZE pos) override;
28 size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) override;
31 FX_FILESIZE pos) override;
33 FX_BOOL Truncate(FX_FILESIZE szFile) override;
Dfxcrt_posix.h25 FX_FILESIZE GetSize() const override;
26 FX_FILESIZE GetPosition() const override;
27 FX_FILESIZE SetPosition(FX_FILESIZE pos) override;
30 size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) override;
33 FX_FILESIZE pos) override;
35 FX_BOOL Truncate(FX_FILESIZE szFile) override;
Dfxcrt_platforms.h25 FX_FILESIZE GetSize() const override;
26 FX_FILESIZE GetPosition() const override;
27 FX_FILESIZE SetPosition(FX_FILESIZE pos) override;
30 size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) override;
33 FX_FILESIZE pos) override;
35 FX_BOOL Truncate(FX_FILESIZE szFile) override;
Dfx_xml_parser.cpp106 m_nOffset = m_nBufferOffset + (FX_FILESIZE)m_dwIndex; in SkipWhiteSpaces()
115 m_nOffset = m_nBufferOffset + (FX_FILESIZE)m_dwIndex; in SkipWhiteSpaces()
122 m_nOffset = m_nBufferOffset + (FX_FILESIZE)m_dwIndex; in GetName()
141 m_nOffset = m_nBufferOffset + (FX_FILESIZE)m_dwIndex; in GetName()
149 m_nOffset = m_nBufferOffset + (FX_FILESIZE)m_dwIndex; in SkipLiterals()
165 m_nOffset = m_nBufferOffset + (FX_FILESIZE)m_dwIndex; in SkipLiterals()
175 m_nOffset = m_nBufferOffset + (FX_FILESIZE)m_dwBufferSize; in SkipLiterals()
180 m_nOffset = m_nBufferOffset + (FX_FILESIZE)m_dwIndex; in GetCharRef()
258 m_nOffset = m_nBufferOffset + (FX_FILESIZE)m_dwIndex; in GetCharRef()
266 m_nOffset = m_nBufferOffset + (FX_FILESIZE)m_dwIndex; in GetAttrValue()
[all …]
/external/pdfium/core/include/fxcrt/
Dfx_stream.h23 #define FX_FILESIZE int32_t macro
34 #define FX_FILESIZE off_t macro
62 virtual FX_FILESIZE GetSize() = 0;
65 FX_FILESIZE offset,
75 virtual FX_FILESIZE GetPosition() = 0;
84 FX_FILESIZE GetPosition() override { return 0; } in GetPosition()
87 virtual FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) = 0;
88 virtual FX_FILESIZE GetSize() = 0;
101 FX_FILESIZE GetPosition() override = 0;
103 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override = 0;
[all …]
Dfx_xml.h48 FX_FILESIZE* pParsedSize = NULL);
51 FX_FILESIZE* pParsedSize = NULL);
54 FX_FILESIZE* pParsedSize = NULL);
/external/pdfium/core/include/fpdfapi/
Dfpdf_parser.h242 FX_FILESIZE SavePos() { return m_Pos; } in SavePos()
244 void RestorePos(FX_FILESIZE pos) { m_Pos = pos; } in RestorePos()
274 FX_FILESIZE limit);
278 FX_FILESIZE limit);
280 FX_FILESIZE FindTag(const CFX_ByteStringC& tag, FX_FILESIZE limit);
288 FX_BOOL GetCharAt(FX_FILESIZE pos, uint8_t& ch);
304 FX_BOOL GetCharAtBackward(FX_FILESIZE pos, uint8_t& ch);
308 bool IsWholeWord(FX_FILESIZE startpos,
309 FX_FILESIZE limit,
317 unsigned int ReadEOLMarkers(FX_FILESIZE pos);
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_parser/
Dfpdf_parser_parser.cpp54 return *(FX_FILESIZE*)p1 - *(FX_FILESIZE*)p2; in CompareFileSize()
141 FX_FILESIZE CPDF_Parser::GetObjectPositionOrZero(FX_DWORD objnum) const { in GetObjectPositionOrZero()
241 FX_FILESIZE startxref_offset = m_Syntax.SavePos(); in StartParse()
243 m_SortedOffset.GetSize(), sizeof(FX_FILESIZE), in StartParse()
254 m_LastXRefOffset = (FX_FILESIZE)FXSYS_atoi64(xrefpos_str); in StartParse()
291 sizeof(FX_FILESIZE), CompareFileSize); in StartParse()
371 FX_FILESIZE CPDF_Parser::GetObjectOffset(FX_DWORD objnum) const { in GetObjectOffset()
379 FX_FILESIZE pos = GetObjectPositionOrZero(objnum); in GetObjectOffset()
385 FX_BOOL CPDF_Parser::LoadAllCrossRefV4(FX_FILESIZE xrefpos) { in LoadAllCrossRefV4()
405 std::set<FX_FILESIZE> seen_xrefpos; in LoadAllCrossRefV4()
[all …]
Dfpdf_parser_parser_unittest.cpp34 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override { in ReadBlock()
42 FX_FILESIZE GetSize() override { return (FX_FILESIZE)total_size_; }; in GetSize()
184 parser.RestorePos(std::numeric_limits<FX_FILESIZE>::max()); in TEST()
256 const FX_FILESIZE offsets[] = {0, 15, 61, 154, 296, 374, 450}; in TEST()
291 const FX_FILESIZE offsets[] = {0, 17, 81, 0, 331, 409}; in TEST()
315 const FX_FILESIZE offsets[] = {0, 0, 0, 25325, 0, 0, 0, in TEST()
340 const FX_FILESIZE offsets[] = {0, 0, 0, 25325, 0, 0, 0, in TEST()
364 const FX_FILESIZE offsets[] = {0, 23, 0, 0, 0, 45, 179}; in TEST()
Dparser_int.h29 FX_FILESIZE& szPageStartPos,
30 FX_FILESIZE& szPageLength,
48 FX_FILESIZE m_szFirstPageObjOffset;
/external/pdfium/fpdfsdk/include/
Dfsdk_define.h55 FX_FILESIZE GetSize() override { return m_FileAccess.m_FileLen; } in GetSize()
57 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override;
82 virtual FX_FILESIZE GetSize();
84 virtual FX_FILESIZE GetPosition() { return m_nCurPos; } in GetPosition()
85 virtual void SetPosition(FX_FILESIZE pos) { m_nCurPos = pos; } in SetPosition()
86 virtual FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size);
89 FX_FILESIZE offset,
95 FX_FILESIZE m_nCurPos;
/external/pdfium/fpdfsdk/src/
Dfpdf_dataavail.cpp44 FX_BOOL IsDataAvail(FX_FILESIZE offset, FX_DWORD size) override { in IsDataAvail()
60 FX_FILESIZE GetSize() override { return m_pFileAccess->m_FileLen; } in GetSize()
62 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override { in ReadBlock()
82 void AddSegment(FX_FILESIZE offset, FX_DWORD size) override { in AddSegment()
Dfpdfview.cpp84 FX_FILESIZE CFPDF_FileStream::GetSize() { in GetSize()
86 return (FX_FILESIZE)m_pFS->GetSize(m_pFS->clientData); in GetSize()
95 FX_FILESIZE offset, in ReadBlock()
112 FX_FILESIZE nSize = GetSize(); in ReadBlock()
115 FX_FILESIZE dwAvail = nSize - m_nCurPos; in ReadBlock()
116 if (dwAvail < (FX_FILESIZE)size) in ReadBlock()
128 FX_FILESIZE offset, in WriteBlock()
185 FX_FILESIZE offset, in ReadBlock()
191 pdfium::base::checked_cast<FX_FILESIZE, size_t>(size); in ReadBlock()
371 CMemFile(uint8_t* pBuf, FX_FILESIZE size) : m_pBuf(pBuf), m_size(size) {} in CMemFile()
[all …]
/external/pdfium/xfa/src/fgas/src/crt/
Dfx_stream.h270 virtual FX_FILESIZE GetSize();
271 virtual FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size);
281 FX_FILESIZE iFileSize,
285 virtual FX_FILESIZE GetSize();
286 virtual FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size);
291 FX_FILESIZE m_iBufSize;
299 virtual FX_FILESIZE GetSize();
303 FX_FILESIZE offset,
Dfx_stream.cpp1216 FX_FILESIZE CFGAS_FileRead::GetSize() { in GetSize()
1217 return (FX_FILESIZE)m_pStream->GetLength(); in GetSize()
1220 FX_FILESIZE offset, in ReadBlock()
1230 FX_FILESIZE iFileSize, in FX_CreateFileRead()
1238 FX_FILESIZE iFileSize, in CFX_BufferAccImp()
1250 FX_FILESIZE CFX_BufferAccImp::GetSize() { in GetSize()
1260 m_iBufSize = (FX_FILESIZE)m_pBufferRead->GetBlockSize(); in GetSize()
1263 m_iBufSize += (FX_FILESIZE)m_pBufferRead->GetBlockSize(); in GetSize()
1268 FX_FILESIZE offset, in ReadBlock()
1276 FX_FILESIZE dwBufSize = GetSize(); in ReadBlock()
[all …]
/external/pdfium/core/src/fxge/apple/
Dapple_int.h220 FX_FILESIZE GetSize() override { return (FX_FILESIZE)_totalSize; } in GetSize()
222 FX_FILESIZE GetPosition() override { return (FX_FILESIZE)_offSet; } in GetPosition()
223 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override;
/external/pdfium/core/src/fpdfapi/fpdf_edit/
Dfpdf_edit_create.cpp25 FX_FILESIZE& offset) { in PDF_CreatorAppendObject()
183 FX_FILESIZE offset = 0; in PDF_CreatorWriteTrailer()
276 FX_FILESIZE offset = 0; in PDF_CreatorWriteEncrypt()
320 void AppendIndex1(CFX_ByteTextBuf& buffer, FX_FILESIZE offset) { in AppendIndex1()
351 int32_t OutputIndex(CFX_FileBufferArchive* pFile, FX_FILESIZE offset) { in OutputIndex()
534 FX_FILESIZE CPDF_ObjectStream::End(CPDF_Creator* pCreator) { in End()
541 FX_FILESIZE ObjOffset = pCreator->m_Offset; in End()
551 FX_FILESIZE& offset = pCreator->m_Offset; in End()
661 FX_FILESIZE objOffset = 0; in EndObjectStream()
683 FX_FILESIZE* offset = pCreator->m_ObjectOffset.GetPtrAt(m_dwTempObjNum); in EndObjectStream()
[all …]
Deditint.h28 FX_FILESIZE End(CPDF_Creator* pCreator);
60 FX_FILESIZE m_PrevOffset;
/external/pdfium/xfa/src/fxfa/src/app/
Dxfa_ffapp.cpp26 FX_FILESIZE CXFA_FileRead::GetSize() { in GetSize()
36 FX_FILESIZE offset, in ReadBlock()
42 FX_FILESIZE dwSize = acc.GetSize(); in ReadBlock()
Dxfa_ffapp.h14 virtual FX_FILESIZE GetSize();
15 virtual FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size);

12