Foxit PDF Conversion SDK
PDFConversionSDK.ReaderCallback Class Referenceabstract

Public Member Functions

abstract GetSize ()
 Get total size of the file. More...
 
abstract ReadBlock (offset, size)
 Read a data block from the file. More...
 

Detailed Description

This class represents a callback object to do file reading. All the pure virtual functions in this class are used as callback functions and should be implemented by user to do file reading in a customized way.

Member Function Documentation

◆ GetSize()

abstract PDFConversionSDK.ReaderCallback.GetSize ( )
pure virtual

Get total size of the file.

Returns
File size, in bytes. Implementation can return 0 for any error.

◆ ReadBlock()

abstract PDFConversionSDK.ReaderCallback.ReadBlock ( offset  ,
size   
)
pure virtual

Read a data block from the file.

Parameters
[in]offsetByte offset from beginning of the file
[in]sizeNumber of bytes for the block.
Returns
A string of binary format receiving read data.