Foxit PDF RDK

Public Member Functions | List of all members
ReaderCallback Class Reference
Inheritance diagram for ReaderCallback:

## Public Member Functions
| GetSize ()
| Get total size of the file. More...
| ReadBlock (buffer, offset, size)
| Read a data block from the file. More...
| ReadBlock (offset, size)
| Read a data block from the file. More...
| Release ()
| Called when to release everything. More...
Public Member Functions inherited from NativeObjectWrapper
| constructor (r)
| GetPointerAsNumber ()

## Detailed Description

Examples
  /Users/ec2-user/gitlab-runner/builds/E-xKdhDo/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

## Member Function Documentation

## ◆ GetSize()

ReaderCallback.GetSize | ( |  | ) |

Get total size of the file.

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

## ◆ ReadBlock() [1/2]

ReaderCallback.ReadBlock | ( | buffer | ,
|  | offset | ,
|  | size |
| ) |  |

Read a data block from the file.

Parameters

  [in] | buffer | A buffer receiving read data.
  [in] | offset | Byte offset from beginning of the file
  [in] | size | Number of bytes for the block.

## ◆ ReadBlock() [2/2]

ReaderCallback.ReadBlock | ( | offset | ,
|  | size |
| ) |  |

Read a data block from the file.

Parameters

  [in] | offset | Byte offset from beginning of the file
  [in] | size | Number of bytes for the block.

Returns
  A buffer receiving read data.

## ◆ Release()

ReaderCallback.Release | ( |  | ) |

Called when to release everything.

Returns
  None.