copy_metadata
Description:
public void copy_metadata (
Buffer src,
BufferCopyFlags flags)
Copies the metadata from src into dest.
The data, size and mallocdata fields are not copied.
flags indicate which fields will be copied. Use
BUFFER_COPY_ALL to copy all the metadata fields.
This function is typically called from a custom buffer copy function after creating dest and setting the data, size, mallocdata.
Parameters:
| src |
a source Buffer
|
| flags |
flags indicating what metadata fields should be copied. |