Copy a given numbers ob bytes in memory
Source position: exec.pas line 2092
procedure CopyMem( |
source: Pointer; |
dest: Pointer; |
size: Cardinal |
); |
source |
|
A pointer to the begin of source data |
dest |
|
A pointer to the begin of destination memory block |
size |
|
Number of bytes to be copied from source to destination, 0 is allowed and do nothing |
This function implements a fast memory copy function. It can deal with arbitrary lengths, with its pointers on arbitrary alignments. It attempts to optimize larger copies with more efficient copies, it uses byte copies for small moves, parts of larger copies, or the entire copy if the source and destination are misaligned with respect to each other.
Arbitrary overlapping copies are not supported.
|
Fast memory copy function |