readBool method

bool readBool()

Read boolean.

Implementation

bool readBool() {
  final b = readInt32();

  if (b == 0x997275B5) {
    return true;
  } else if (b == 0xBC799737) {
    return false;
  }

  throw Exception('Invalid boolean value.');
}