decodeAsBool function

bool decodeAsBool(
  1. int rawVarint
)

Interprets rawVarint as a boolean.

Returns true if rawVarint is non-zero, false otherwise.

Implementation

bool decodeAsBool(int rawVarint) {
  return rawVarint != 0;
}