Let's take a look at What MemCopy() function does..
MEMCopy()
The MEMCopy() intrinsic function is used to efficiently copy blocks of data from one memory array to another.
void MEMCopy( source_ptr, destination_ptr, num_bytes );
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)
0 comments:
Post a Comment