Protobuf.ReadBool Method

Reads a bool from a protobuf message.

bool ReadBool(const char[] field, int index)

Parameters

const char[] field

Field name.

int index

Index into repeated field.

Return Value

Boolean value read.

Errors

Non-existent field, or incorrect field type.