Foxit PDF SDK
<FSFileWriterCallback>协议 参考

继承自 <NSObject> .

构造函数

(BOOL) - flush
 Flush internal buffer of the file 更多...
 
(unsigned long long) - getSize
 Get total size of the file. 更多...
 
(BOOL) - writeBlock:offset:
 Write a block data. 更多...
 

详细描述

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

函数文档

◆ flush()

- (BOOL) flush
required

Flush internal buffer of the file

返回
YES means success, while NO means failure.

◆ getSize()

- (unsigned long long) getSize
required

Get total size of the file.

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

◆ writeBlock:offset:()

- (BOOL) writeBlock: (NSData *)  data
offset: (unsigned long long)  offset 
required

Write a block data.

参数
[in]dataThe block data.
[in]offsetByte offset from beginning of the file
返回
YES means success, while NO means failure.