Protobuf.ReadString Method

Reads a string from a protobuf message.

void ReadString(const char[] field, char[] buffer, int maxlength, int index)

Parameters

const char[] field

Field name.

char[] buffer

Destination string buffer.

int maxlength

Maximum length of output string buffer.

int index

Index into repeated field.

Errors

Non-existent field, or incorrect field type.