PbReadVector2D Function

Reads an XY vector value from a protobuf message.

void PbReadVector2D(Handle pb, const char[] field, float buffer[2], int index)

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

float[2] buffer

Destination vector buffer.

int index

Index into repeated field.

Errors

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