[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'Exec' (#aros)

CopyMem

Copy a given numbers ob bytes in memory

Declaration

Source position: exec.pas line 1312

procedure CopyMem(

  const Source: APTR;

  Dest: APTR;

  Size: ULONG

);

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: 2017-01-10