assign

CclBuf& assign(unsigned long length, const void* dataArea)  

length
The length of the source data area, in bytes.
dataArea
The address of the source data area.

Overwrites the current contents of the data area with the source data and resets the data length.