Copy a given numbers ob bytes in memory
Source position: exec.pas line 1315
procedure CopyMem( |
const Source: Pointer; |
Dest: Pointer; |
Size: LongWord |
); |
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 |