Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
FakeFileAccess Class Reference

#include <fake_file_access.h>

+ Collaboration diagram for FakeFileAccess:

Public Member Functions

 FakeFileAccess (FPDF_FILEACCESS *file_access)
 
 ~FakeFileAccess ()
 
FPDF_FILEACCESSGetFileAccess () const
 
FX_FILEAVAILGetFileAvail () const
 
FX_DOWNLOADHINTSGetDownloadHints () const
 
FPDF_BOOL IsDataAvail (size_t offset, size_t size) const
 
void AddSegment (size_t offset, size_t size)
 
unsigned long GetFileSize ()
 
int GetBlock (unsigned long position, unsigned char *pBuf, unsigned long size)
 
void SetRequestedDataAvailable ()
 
void SetWholeFileAvailable ()
 

Detailed Description

Definition at line 19 of file fake_file_access.h.

Constructor & Destructor Documentation

◆ FakeFileAccess()

FakeFileAccess::FakeFileAccess ( FPDF_FILEACCESS * file_access)
explicit

Definition at line 70 of file fake_file_access.cpp.

References FakeFileAccess().

Referenced by FakeFileAccess().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~FakeFileAccess()

FakeFileAccess::~FakeFileAccess ( )
default

Member Function Documentation

◆ AddSegment()

void FakeFileAccess::AddSegment ( size_t offset,
size_t size )

Definition at line 96 of file fake_file_access.cpp.

◆ GetBlock()

int FakeFileAccess::GetBlock ( unsigned long position,
unsigned char * pBuf,
unsigned long size )

Definition at line 104 of file fake_file_access.cpp.

◆ GetDownloadHints()

FX_DOWNLOADHINTS * FakeFileAccess::GetDownloadHints ( ) const

Definition at line 88 of file fake_file_access.cpp.

Referenced by EmbedderTest::OpenDocumentHelper(), and TEST_F().

+ Here is the caller graph for this function:

◆ GetFileAccess()

FPDF_FILEACCESS * FakeFileAccess::GetFileAccess ( ) const

Definition at line 80 of file fake_file_access.cpp.

Referenced by EmbedderTest::OpenDocumentHelper(), TEST_F(), and TEST_F().

+ Here is the caller graph for this function:

◆ GetFileAvail()

FX_FILEAVAIL * FakeFileAccess::GetFileAvail ( ) const

Definition at line 84 of file fake_file_access.cpp.

Referenced by EmbedderTest::OpenDocumentHelper(), TEST_F(), and TEST_F().

+ Here is the caller graph for this function:

◆ GetFileSize()

unsigned long FakeFileAccess::GetFileSize ( )

Definition at line 100 of file fake_file_access.cpp.

◆ IsDataAvail()

FPDF_BOOL FakeFileAccess::IsDataAvail ( size_t offset,
size_t size ) const

Definition at line 92 of file fake_file_access.cpp.

◆ SetRequestedDataAvailable()

void FakeFileAccess::SetRequestedDataAvailable ( )

Definition at line 116 of file fake_file_access.cpp.

Referenced by EmbedderTest::OpenDocumentHelper(), and TEST_F().

+ Here is the caller graph for this function:

◆ SetWholeFileAvailable()

void FakeFileAccess::SetWholeFileAvailable ( )

Definition at line 121 of file fake_file_access.cpp.

Referenced by EmbedderTest::OpenDocumentHelper(), TEST_F(), and TEST_F().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: