PbReadFloat Function

Reads a float or downcasted double from a protobuf message.

float PbReadFloat(Handle pb, const char[] field, int index)

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

int index

Index into repeated field.

Return Value

Float value read.

Errors

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