LBaseFile::RedirectWriteCallBack

#include "ltwrappr.h"

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

Replaces the normal LEADTOOLS function for writing a file.

Parameters

L_INT FD

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

L_CHAR * pBuf

Address of a buffer that contains data to be written to the file.

L_INT nCount

The number of bytes to be written to the file.

Returns

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

Comments

Override this function to replace the normal LEADTOOLS function for writing 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.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help

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