PtrAndHand
PtrAndHand
Concatenate data to the end of an existing Handle #include <OSUtils.h> Operating System Utilities
Ptr srcPtr ; address of some data to copy Handle destHandle ; data will be concatenated to this Handle long size ; amount of data, in bytes, to concatenate
PtrAndHand copies a specified amount of data, adding it to the end of the data in a relocatable block and adjusting the destination Handle's size. srcPtr is the address of some data to copy.
destHandle is a Handle leading to an existing data area. Upon return, the data area will contain its original contents, followed by a copy of size
bytes of data starting at srcPtr.
size is the length, in bytes, of the data to be concatenated.
memFullErr (-108) Not enough room in heap
nilHandleErr (-109) destHandle was invalid on entry
memWZErr (-111) Attempt to operate on a free block