Reader.countElements

Counts the elements of the current position, if the reader is positioned on an array.

In case of failure, the reader is set to an error state.

class Reader
int
countElements
()

Return Value

Type: int

the number of elements, or -1.