PbReadInt Function

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

int PbReadInt(Handle pb, const char[] field, int index)

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

int index

Index into repeated field.

Return Value

Integer value read.

Errors

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