Protobuf.ReadInt Method

Reads an int32, uint32, sint32, fixed32, sfixed32, or enum value from a protobuf message.

int ReadInt(const char[] field, int index)

Parameters

const char[] field

Field name.

int index

Index into repeated field.

Return Value

Integer value read.

Errors

Non-existent field, or incorrect field type.