Search:

As defined in xcapi.h

xerr xcGetFieldArray(xhandle object,
xuint32 slot,
XC_FIELD_ID fieldID,
void *obuf,
xuint32 elmsiz,
xuint32 *elmcnt);

Description:

Reads one or more contiguous array-field-element values from an object. Indexing notation may be appended to the field ID if the initial element to extract is not the zeroeth. (See the fieldID parameter, below, for a description of the indexing notation.) This function should not be called for non-array-type field if anything other than the zeroeth element is to be retrieved.

Note that the API includes a set of built-in conversion routines, as documented in this Reference Guide.

Parameters:

Returns:

An xerr type indicating the status of the operation.

Common error codes:

XSUCCESS The operation completed successfully.
XINVAL An invalid parameter was supplied.
XBADSLOT Invalid slot number.
XBADFIELD Invalid field. (For example, variable length fields are invalid for array retrieval. This status is also returned if xcGetFieldArray() is called for an element other than the zeroeth in a non-array-type field.)
XOVERFLOW Result would overflow supplied buffer.
XPENDING Object has not received data yet.
XNODATA Could not find requested data.
XUNINIT Slot has not been subscribed to data.
XNOTCONNECTED Session not connected.
XBADSTATE Slot is empty.
XBADHANDLE Invalid handle.



[ Top Of Page ]