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.
|
pure virtual |
Flush internal buffer.
|
pure virtual |
Get the current reading position in stream.
|
pure virtual |
Get the current stream size, in bytes.
|
pure virtual |
Determine whether reach the end of stream.
|
pure 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. |
|
pure virtual |
Read data block from stream.
[in] | size | Total size of buffer, in bytes. |
|
pure virtual |
Destroy the current instance.
|
pure virtual |
Create a shared instance.
|
pure 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. |