PbReadBool Function

Reads a bool from a protobuf message.

bool PbReadBool(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

Boolean value read.

Errors

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