LBaseFile::RedirectReadCallBack

Summary

Replaces the normal LEADTOOLS function for reading a file.

Syntax

#include "ltwrappr.h"

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

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 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.