L_INT LBuffer::Copy(lpStr)
L_INT LBuffer::Copy(lpData, dwSize)
L_INT LBuffer::Copy(pLBufferSrc)
Copies the passed item to the LBuffer object.
Character string to be copied to the buffer.
Pointer to the data buffer to be copied.
Size of the buffer in bytes
Pointer to a LEAD buffer object to copy
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
LBuffer::Copy(lpStr) copies a string to the class objects 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.
Win32, x64.
For an example of LBuffer::Copy(lpStr), refer to LBuffer::Fill.
This is an example for LBuffer::Copy(lpData, dwSize):
L_INT LBuffer__CopyExample(LBitmapBase& LeadBitmap)
{
L_INT nRet;
LBuffer LeadBuffer;
LBuffer MyBuffer ;
nRet =(L_INT)LeadBitmap.GetRow(&LeadBuffer,6);
if(nRet < 1)
return nRet;
nRet =MyBuffer.Copy((L_CHAR *)LeadBuffer.Lock(),LeadBuffer.GetSize());
if(nRet !=SUCCESS)
return nRet;
LeadBuffer.Unlock();
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document