classname_fieldname_size(vector)(string)

The size function for a string element returns the number of bytes in the string. For a vector element, it returns the number of elements in the vector. This method is not generated for fixed size arrays.

Prototype

    MCO_RET classname_fieldname_size( /*IN*/ classname *handle,
                           /*OUT*/ uint2 *size );

Arguments

handle
A pointer to a classname handle.
size
A uint2 pointer to receive the size of the element.

Description

The size function for a string element returns the number of bytes in the string. For a vector element, it returns the number of elements in the vector. This method is not generated for fixed size arrays.

Return Codes

MCO_S_OK
The size was returned successfully.
MCO_TRANSACT
MCO_ERR_OBJECT_HANDLE
Related Topics Link IconRelated Topics