Description
MEMCopy() is used to efficiently copy blocks of data from one memory array to another.
Call Signature
void MEMCopy ( any ptr source_ptr, any ptr destination_ptr, int num_bytes )
Return Value
void
This has no return value.
Arguments
any ptr source_ptr:
A pointer to a source memory block. Pointer can be of any type.
any ptr destination_ptr:
A pointer to the destination memory block. Pointer can be of any type.
int num_bytes:
The number of bytes of data to copy.
Example
Copy 10000 bytes starting 5000 bytes into array src to a newly allocated destination buffer (dst).
local byte ptr src, byte ptr dst ... dst = EAlloc(byte,10000) call MEMCopy(src + 5000, dst, 10000)
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.