MGL_memcpyVIRTDST

Copies a block of memory as fast as possible.

Declaration

void MGLAPI MGL_memcpyVIRTDST(
    void *dst,
    void *src,
    int n)

Prototype In

mgraph.h

Parameters

dst

Pointer to destination block

src

Pointer to source block

n

Number of bytes to copy

 

Description

This function copies a block of memory as fast as possible, and has been optimized to copy the data 32 bits at a time for maximum performance. This function is similar to the standard C library memcpy function, but can correctly handle copying of memory blocks that are larger than 64Kb in size for 16 bit real mode environments. Note also that this function is generally a lot faster than some standard C library functions.

This function is identical to MGL_memcpy except that it is virtual linear framebuffer safe, and should be used for copying data where the destination pointer resides in a virtualized linear surface.

See Also

MGL_memcpyVIRTSRC, MGL_memcpy

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com