Siebel eScript Language Reference > Siebel eScript Commands > Clib Object Buffer Methods in Siebel eScript >

Clib.memcpy() Method and Clib.memmove() Method


These methods copy a specified number of bytes from one buffer to another.

Syntax

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

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

Parameter
Description

destBuf

The buffer to copy to

srcBuf

The buffer to copy from

length

The number of bytes to copy

Usage

These methods copy the number of bytes specified by length from srcBuf to destBuf. If destBuf has not already been defined, it is created as a buffer. If the length is not supplied, the entire contents of srcBuf are copied to destBuf.

Siebel eScript protects data from being overwritten; therefore, in Siebel eScript Clib.memcpy() method is the same as Clib.memmove().

Siebel eScript Language Reference Copyright © 2007, Oracle. All rights reserved.