LBuffer::Fill

#include "ltwrappr.h"

L_INT LBuffer::Fill(cValue=0)

L_UCHAR cValue;

/* character to use to fill the buffer */

Fills the class objects buffer with the specified value.

Parameter

Description

cValue

Character to use to fill the buffer.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Required DLLs and Libraries

LTDIS

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

Class Members

Example

L_INT LBuffer__FillExample(LBitmapBase& LeadBitmap)
{
   L_INT nRet;
   LBuffer LeadBuffer ;
   LBuffer LeadCopyBuffer ;
   nRet =(L_INT)LeadBitmap.GetRow(&LeadBuffer,5) ;
   if(nRet !=SUCCESS)
      return nRet;
   nRet =LeadCopyBuffer.Copy(TEXT("ABCD String")) ;
   if(nRet !=SUCCESS)
      return nRet;
   nRet =LeadBuffer.Fill() ;
   if(nRet !=SUCCESS)
      return nRet;
   //...
   nRet =LeadBuffer.Free() ;
   if(nRet !=SUCCESS)
      return nRet;
   //...
   nRet =LeadCopyBuffer.Free() ;
   if(nRet !=SUCCESS)
      return nRet;
   return SUCCESS;
}