|
Obsolete IDL Features: Obsolete Remote Procedure Calls |
|
int v_fill_array(varinfo_t* var, char* name, int type, int ndimension, IDL_LONG dims[], UCHAR* value, IDL_long length)
Create an IDL array variable. The type argument should be one of the following values (defined in the file export.h):
IDL_TYP_BYTE, IDL_TYP_INT, IDL_TYP_LONG, IDL_TYP_FLOAT, IDL_TYP_DOUBLE, IDL_TYP_STRING, IDL_TYP_COMPLEX, IDL_TYP_DCOMPLEX
This function allocates var->Variable->value.arr.
If value is NULL then var->Variable->value.arr->data is allocated.
The dims[] argument should have at least ndimension valid elements.
If value is supplied but length is 0, var->Length is filled with the computed size of the array (in bytes) and value is assumed to point to at least that many bytes of memory. If value and length are supplied, length is assumed to be the size (in bytes) of the region of memory that value points to. (See Notes on Variable Creation and Memory Management)
IDL Online Help (March 06, 2007)