PbGetRepeatedFieldCount Function

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

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

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

Return Value

Number of elements in the field.

Errors

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