Foxit PDF SDK
<FSFileReaderCallback>协议 参考
类 <FSFileReaderCallback> 继承关系图:
<FSAsyncReaderCallback>

构造函数

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

详细描述

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.

函数文档

◆ getSize()

- (unsigned long long) getSize
required

Get total size of the file.

返回
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.

参数
[in]offsetByte offset from beginning of the file
[in]sizeNumber of bytes for the block.
返回
A data block read from file.