Carbon


PtrToXHand

Header: MacMemory.h Carbon status: Supported

Copies data referenced by a pointer to an existing relocatable block.

OSErr PtrToXHand (
    const void *srcPtr, 
    Handle dstHndl, 
    SInt32 size
);
srcPtr

The address of the first byte to copy.

dstHndl

A handle to an existing relocatable block.

size

The number of bytes to copy.

function result

A result code. A result code.

DISCUSSION

The PtrToXHand function copies the specified number of bytes from the location specified by srcPtr to the handle specified by dstHndl.

Because PtrToXHand affects memory, you should not call it at interrupt time.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)