Foxit PDF Conversion SDK
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 ( )
inlinevirtual

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 
)
inlinevirtual

Read a data block from the file.

Parameters
[in,out]bufferPointer to a buffer receiving read data
[in]offsetByte offset from beginning of the file
[in]sizeNumber of bytes for the block.
Returns
true means success, and false means failure.

◆ Release()

void foxit.common.fxcrt.FileReaderCallback.Release ( )
inlinevirtual

Called when to release everything.

Returns
None.