PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

BlockCopy

BlockCopy copies the contents of memory from one location to another.

void BlockCopy      (const void *srcPtr,
                     void *destPtr,
                     Size byteCount);
srcPtr
Address of source to copy.
destPtr
Address of destination to copy into.
byteCount
Number of bytes to copy.
DESCRIPTION

The BlockCopy routine copies the chunk of memory at srcPtr to destPtr. Parameter byteCount specifies how many bytes are copied.

BlockCopy calls BlockMove, using the most appropriate version for the current execution environment and copying task. However, drivers may bypass BlockCopy and call BlockMove directly.

EXECUTION CONTEXT

BlockCopy may be called from task level, software interrupt level, or hardware interrupt level.


© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)