PbReadVector Function

Reads an XYZ vector value from a protobuf message.

void PbReadVector(Handle pb, const char[] field, float buffer[3], int index)

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

float[3] buffer

Destination vector buffer.

int index

Index into repeated field.

Errors

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