Unit 'exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

CopyMem

Copy a given numbers ob bytes in memory

Declaration

Source position: exec.pas line 2092

procedure CopyMem(

  source: Pointer;

  dest: Pointer;

  size: Cardinal

);

Arguments

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

Description

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.

See also

CopyMemQuick

  

Fast memory copy function


Documentation generated on: 2021-07-30