LBaseFile::RedirectWriteCallBack

Summary

Replaces the normal LEADTOOLS function for writing a file.

Syntax

#include "ltwrappr.h"

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

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 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.