|
![]() |
![]() |
version 2003
PA_SetBlobVariable (aVariable; newBlob; size)
Parameter | Type | Description | |
aVariable | PA_Variable * | → | Pointer to the variable to access |
newBlob | void * | → | New value for aVariable |
size | long | → | Size (in bytes) of newBlob |
Description
The routine
PA_SetBlobVariable
sets the content of the BLOB variable pointed to by
aVariable
to the data pointed to by
newBlob
.
Pass a pointer to the new data value in
newBlob
and its size in
size
.
WARNING
The kind of of the variable pointed to by
aVariable
is set to
eVK_Blob
by the routine, even if it was not its previous kind.
Make sure that you do not change 4D variable kinds (using
PA_GetVariable
), especially in compiled mode.
Note that
PA_SetBlobVariable
duplicates
newBlob
, which still belongs to the plug-in after the call. To give the data without duplicating it, use
PA_SetBlobHandleVariable
.
Example