Foxit PDF Conversion SDK

Public Member Functions | List of all members
foxit.common.fxcrt.FileReaderCallback Class Reference

File reading interface. More...

Inherits SystemIDisposable.

## Public Member Functions
virtual long | GetSize ()
| Get total size of the file. More...
virtual bool | ReadBlock (global::System.IntPtr buffer, long offset, uint size)
| Read a data block from the file. More...
virtual void | Release ()
| Called when to release everything. More...

## Detailed Description

File reading interface.

## Member Function Documentation

## ◆ GetSize()

long foxit.common.fxcrt.FileReaderCallback.GetSize | ( |  | ) |
| inline virtual

Get total size of the file.

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

## ◆ ReadBlock()

bool foxit.common.fxcrt.FileReaderCallback.ReadBlock | ( | global::System.IntPtr | buffer,
|  | long | offset,
|  | uint | size
| ) |  |
| inline virtual

Read a data block from the file.

Parameters

  [in,out] | buffer | Pointer to a buffer receiving read data
  [in] | offset | Byte offset from beginning of the file
  [in] | size | Number of bytes for the block.

Returns
  true means success, and false means failure.

## ◆ Release()

void foxit.common.fxcrt.FileReaderCallback.Release | ( |  | ) |
| inline virtual

Called when to release everything.

Returns
  None.