ReadInt
Reads an int32, uint32, sint32, fixed32, sfixed32, or enum value from a protobuf message.
native int ReadInt(const char[] field, int index = -1)
Parameters
const char[] field
Field name.
int index
Index into repeated field.
Return Value
int Integer value read.Error
Non-existent field, or incorrect field type.