Foxit PDF SDK  9.1
<FSFileReaderCallback> Protocol Reference

file reading interface. More...

Inheritance diagram for <FSFileReaderCallback>:
<FSAsyncReaderCallback>

Instance Methods

(unsigned long long) - getSize
 Get total size of the file. More...
 
(NSData *) - readBlock:size:
 Read a data block from the file. More...
 

Detailed Description

file reading interface.

Method Documentation

◆ getSize

- (unsigned long long) getSize
required

Get total size of the file.

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

◆ readBlock:size:

- (NSData *) readBlock: (unsigned long long)  offset
size: (unsigned long long)  size 
required

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 buffer receiving read data.