decodeBool method

  1. @override
bool decodeBool()
override

Decodes the data as a boolean value.

Implementation

@override
bool decodeBool() {
  skipWhitespace();
  switch (buffer[_offset]) {
    case tokenT:
      _offset += 4;
      return true;
    case tokenF:
      _offset += 5;
      return false;
    default:
      expect('bool');
  }
}