PbReadString Function

Reads a string from a protobuf message.

void PbReadString(Handle pb, const char[] field, char[] buffer, int maxlength, int index)

Parameters

Handle pb

protobuf handle.

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

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