Foxit PDF SDK

构造函数 | 所有成员列表
<FSFileStreamCallback>协议 参考

继承自 <NSObject> .

## 构造函数
(BOOL) | - flush
| Flush internal buffer 更多...
(unsigned long long) | - getSize
| Get the current stream size, in bytes. 更多...
(NSData *) | - readBlock:size:
| Read a data block from stream. 更多...
(BOOL) | - writeBlock:offset:
| Write a block data into stream. 更多...

## 详细描述

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.

## 函数文档

## ◆ flush()

- (BOOL) flush |  |  |
| required

Flush internal buffer

返回
  YES means success, while NO means failure.

## ◆ getSize()

- (unsigned long long) getSize |  |  |
| required

Get the current stream size, in bytes.

返回
  Current stream size, in bytes.

## ◆ readBlock:size:()

- (NSData *) readBlock: |  | (unsigned long long) | offset
size: |  | (unsigned long long) | size
| 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.

返回
  A data block read from stream.

## ◆ writeBlock:offset:()

- (BOOL) writeBlock: |  | (NSData *) | data
offset: |  | (unsigned long long) | offset
| 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.

返回
  YES means success, while NO means failure.