Foxit PDF SDK
|
Inherits <NSObject>.
Instance Methods | |
(BOOL) | - flush |
Flush internal buffer. More... | |
(unsigned long long) | - getSize |
Get the current stream size, in bytes. More... | |
(NSData *) | - readBlock:size: |
Read a data block from stream. More... | |
(BOOL) | - writeBlock:offset: |
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.
|
required |
Flush internal buffer.
|
required |
Get the current stream size, in bytes.
|
required |
Read a data block from stream.
[in] | offset | Byte offset from beginning of the stream, the position to read data. |
[in] | size | Number of bytes to be read from stream. |
|
required |
Write a block data into stream.
[in] | data | The block data. |
[in] | offset | Byte offset from beginning of the stream, the position to write data. |