Deep copies the data from a source object to a destination <Image> object. The source array remains unchanged and the <Image> object and array objects retain unique ownership of their underlying memory. This function can be regarded as a bounds-checked version of memcpy(). Non-zero indicates success, zero indicates failure.
int32 PackUint16Array( Uint16Array p_oSource, Image p_oDestImage, uint32 p_nPadding )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Uint16Array> | p_oSource | The source object. |
<Image> | p_oDestImage | The destination <Image> object. |
uint32 | p_nPadding | The padding value for any bytes in the <Image> object not provided with data from the source array. This value is irrelevant if the size in bytes of the source array is equal to or greater than the size in bytes of the destination <Image> object. |
None published. Please look for an example in the Scenome Scripting Language code base.