Clib Copy Memory Method

The Clib Copy Memory method copies bytes from a source buffer to a destination buffer.

Format

Clib.memcpy(destBuf, srcBuf[, length])
Clib.memmove(destBuf, srcBuf[, length])

Siebel eScript protects data from being overwritten, so Clib.memmove performs exactly the same work as Clib.memcpy.

The following table describes the arguments for the Clib Copy Memory method.

Argument Description

destBuf

The name of a buffer or a variable that references a buffer. If this buffer does not exist, then this method creates it.

srcBuf

The buffer that this method uses to get the data that it copies.

length

The number of bytes that this method copies. If you do not specify the length argument, then it copies the entire contents of the buffer.