LBuffer::Copy
#include "ltwrappr.h"
L_INT LBuffer::Copy(lpStr)
L_INT LBuffer::Copy(lpData, dwSize)
L_INT LBuffer::Copy(pLBufferSrc)
/* character string */ | |
/* pointer to a data buffer */ | |
DWORD dwSize; |
/* size of the buffer in bytes */ |
/* pointer to a LEAD buffer object to copy */ |
Copies the passed item to the LBuffer object.
Parameter |
Description |
lpStr |
Character string to be copied to the buffer. |
lpData |
Pointer to the data buffer to be copied. |
dwSize |
Size of the buffer in bytes |
pLBufferSrc |
Pointer to a LEAD buffer object to copy |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
LBuffer::Copy(lpStr) copies a string to the class object’s buffer.
LBuffer::Copy(lpData, dwSize) copies the specified buffer to the class object's buffer. This results in two copies of the buffer.
LBuffer::Copy(pLBufferSrc) copies the specified class object's buffer. This results in two copies of the buffer.
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: |
Example
For an example of LBuffer::Copy(lpStr), refer to LBuffer::Fill.
This is an example for LBuffer::Copy(lpData, dwSize):
L_VOID TestCopyData(LBitmapBase& LeadBitmap)
{
LBuffer LeadBuffer;
LBuffer MyBuffer ;
LeadBitmap.GetRow(&LeadBuffer,6);
MyBuffer.Copy((L_CHAR L_FAR *)LeadBuffer.Lock(),LeadBuffer.GetSize());
LeadBuffer.Unlock();
}
This is an example for LBuffer::Copy(pLBufferSrc):
L_VOID TestCopyBuffer(LBitmapBase& LeadBitmap)
{
LBuffer LeadBuffer;
LBuffer MyBuffer ;
LeadBitmap.GetRow(&LeadBuffer,6);
MyBuffer.Copy(&LeadBuffer);
}