Protobuf.AddInt Method

Add an int32, uint32, sint32, fixed32, sfixed32, or enum value to a protobuf message repeated field.

void AddInt(const char[] field, int value)

Parameters

const char[] field

Field name.

int value

Integer value to add.

Errors

Non-existent field, or incorrect field type.