|
Foxit PDF Conversion SDK
|
Public Member Functions | |
| abstract | Flush () |
| Flush internal buffer. More... | |
| abstract | GetPosition () |
| Get the current reading position in stream. More... | |
| abstract | GetSize () |
| Get the current stream size, in bytes. More... | |
| abstract | IsEOF () |
| Determine whether reach the end of stream. More... | |
| abstract | ReadBlock (offset, size) |
| Read a data block from stream. More... | |
| abstract | ReadBlock (size) |
| Read data block from stream. More... | |
| abstract | Release () |
| Destroy the current instance. More... | |
| abstract | Retain () |
| Create a shared instance. More... | |
| abstract | WriteBlock (str, offset, size) |
| Write a block data into stream. More... | |
This class represents a callback object to do file reading and writing. All the pure virtual functions in this class are used as callback functions and should be implemented by user to do file reading and writing in a customized way.
|
inlinepure virtual |
Flush internal buffer.
|
inlinepure virtual |
Get the current reading position in stream.
|
inlinepure virtual |
Get the current stream size, in bytes.
|
inlinepure virtual |
Determine whether reach the end of stream.
|
inlinepure virtual |
Read a data block from stream.
| [in] | offset | Byte offset from beginning of the file, the position to read data. |
| [in] | size | Number of bytes to be read from stream. |
|
inlinepure virtual |
Read data block from stream.
| [in] | size | Total size of buffer, in bytes. |
|
inlinepure virtual |
Destroy the current instance.
|
inlinepure virtual |
Create a shared instance.
|
inlinepure virtual |
Write a block data into stream.
| [in] | str | A string of binary format. |
| [in] | offset | Byte offset from beginning of the file, the position to write data. |
| [in] | size | The length in bytes of the buffer. |