LBaseFile::RedirectReadCallBack

#include "ltwrappr.h"

virtual L_UINT LBaseFile::RedirectReadCallBack(FD, pBuf, nCount)

Replaces the normal LEADTOOLS function for reading a file.

Parameters

L_INT FD

The file to be read. The file handle is returned by the RedirectOpenCallBack function.

L_CHAR * pBuf

Address of a buffer that is to receive the data read from the file.

L_INT nCount

The number of bytes to be read from the file.

Returns

Value Meaning
>0 The number of bytes that the function read from the file.
-1 The function failed.

Comments

Override this function to replace the normal LEADTOOLS function for reading a file.

The Redirect input / output functions cannot be used in combination with:

Note: The Redirect input / output functions do not support Kodak PhotoCD (PCD) or FlashPix (FPX) files.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to LFile::StartFeedLoad.

Help Version 21.0.2021.4.8
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help