Unit 'Exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

CopyMem

Copy a given numbers ob bytes in memory

Declaration

Source position: exec.pas line 1315

procedure CopyMem(

  const Source: Pointer;

  Dest: Pointer;

  Size: LongWord

);

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