Protobuf.ReadFloat Method

Reads a float or downcasted double from a protobuf message.

float ReadFloat(const char[] field, int index)

Parameters

const char[] field

Field name.

int index

Index into repeated field.

Return Value

Float value read.

Errors

Non-existent field, or incorrect field type.