TibrvMsgField::getCount()

Method

Declaration

tibrv_u32 getCount() const;

Purpose

Get the number of elements in a field.

Remarks

For array types, count is the number of array elements.

For example, when a field contains a array of ten 32-bit integers, its size is 4, and its count is 10.

(For scalar types, strings, opaque byte sequences and XML data, the count is 1. That is, the field contains one string—not an array of characters; one opaque value—not an array of bytes.)

This method returns the value of the member field.count.