PbSetInt Function

Sets an int32, uint32, sint32, fixed32, sfixed32, or enum value on a protobuf message.

void PbSetInt(Handle pb, const char[] field, int value, int index)

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

int value

Integer value to set.

int index

Index into repeated field.

Errors

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