Siebel eScript Language Reference > C Language Library Reference > Clib Buffer Methods >

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.

Table 163 describes the arguments for the Clib Copy Memory method.

Table 163. 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.

Siebel eScript Language Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.