decode static method

TableUpdateRows decode(
  1. BsatnDecoder decoder
)

Implementation

static TableUpdateRows decode(BsatnDecoder decoder) {
  final tag = decoder.readU8();
  if (tag == 0) return PersistentTableRows.decode(decoder);
  if (tag == 1) return EventTableRows.decode(decoder);
  throw ArgumentError('Unknown TableUpdateRows tag: $tag');
}