PbGetRepeatedFieldCount Function

Gets the number of elements in a repeated field of a protobuf message.

int PbGetRepeatedFieldCount(Handle pb, const char[] field)


Handle pb

protobuf handle.

const char[] field

Field name.

Return Value

Number of elements in the field.


Invalid or incorrect Handle, non-existent field, or incorrect field type.