Foxit PDF SDK

fs_file.h
Go to the documentation of this file.
1
16 #ifndef FS_COMMON_FILE_FILE_H_
17 #define FS_COMMON_FILE_FILE_H_
18
19 #include "common/fs_basictypes.h"
20
26 namespace foxit {
30 namespace common {
34 namespace file {
40 typedef IFX_FileRead ReaderCallback;
41
47 typedef IFX_FileWrite WriterCallback;
48
54 typedef IFX_FileStream StreamCallback;
55
64 class AsyncReaderCallback : public ReaderCallback {
65 public:
77 virtual bool IsDataAvail(int64 offset, size_t size) = 0;
78
93 virtual bool AddDownloadHint(int64 offset, size_t size) = 0;
94
95 protected:
96 ~AsyncReaderCallback() {}
97 };
98 } // namespace file
99 } // namespace common
100 } // namespace foxit
101
102 #endif
foxit::int64
FX_INT64 int64
Signed 64-bit integer.
Definition: fs_basictypes.h:189
IFX_FileWrite
File writing interface.
Definition: fx_stream.h:470
foxit::common::file::AsyncReaderCallback::IsDataAvail
virtual bool IsDataAvail(int64 offset, size_t size)=0
A callback function used to check whether the specified data section is available or not.
foxit::common::file::WriterCallback
IFX_FileWrite WriterCallback
Definition: fs_file.h:47
IFX_FileStream
File stream interface, reading & writing.
Definition: fx_stream.h:692
IFX_FileRead
File reading interface.
Definition: fx_stream.h:587
fs_basictypes.h
Header file for basic types definitions.
foxit::common::file::AsyncReaderCallback::AddDownloadHint
virtual bool AddDownloadHint(int64 offset, size_t size)=0
A callback function used to add offset and size to specify a data section, which should be downloaded...
foxit::common::file::AsyncReaderCallback
Definition: fs_file.h:64
foxit
Foxit namespace.
Definition: fs_taggedpdf.h:27
foxit::common::file::StreamCallback
IFX_FileStream StreamCallback
Definition: fs_file.h:54
foxit::common::file::ReaderCallback
IFX_FileRead ReaderCallback
Definition: fs_file.h:40