Overview
Memory.Copy ( |
Copy a memory area starting from the SourceMemory (the start memory address) to the DestinationMemory (address of the destination memory) with the specified length (in bytes).
(number) Address of SourceMemory.
(number) Address of DestinationMemory.
(number) Specified length (in bytes) if you want all bytes copys set it -1.
Nothing.
mem = Memory.Allocate(1024) mem2 = Memory.Allocate(1024) Memory.PutString(mem, "AMSWaves", -1, "Ascii") Memory.Copy(mem, mem2, -1); Dialog.Message("Memory Copied", Memory.GetString(mem2, -1, "Ascii")) Memory.Free(mem) Memory.Free(mem2)
See also: Related Actions