Search:

As defined in xcapi.h

xerr xcGetField(xhandle object,
xuint32 slot,
XC_FIELD_ID fieldID,
void *obuf,
xuint32 obufsiz);

Description:

Reads an individual field value from an object slot. The output buffer size must be sufficient to hold the requested field value, but may also be larger, as described for the obufsiz parameter. If this function is called on an array field, the value of only one array-field element can be extracted, and the zeroeth element is extracted by default. (See the fieldID parameter for a description of the indexing notation available to extract an element other than the zeroeth.) To extract more than one element value from an array field, use xcGetFieldArray(). 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.
XMOREDATA Successful completion, but only partial data returned due to buffer size. (Applicable to variable-length fields only.)
XINVAL An invalid parameter was supplied.
XBADSLOT Invalid slot number.
XBADFIELD Invalid field.
XTIME Timer expired.
XOVERFLOW Result would overflow supplied buffer.
XNODATA Could not find requested data.
XUNINIT Slot has not been subscribed to data.
XPENDING Object has not received data yet.
XBADSTATE Slot is empty.
XBADHANDLE Invalid handle.



[ Top Of Page ]