decode static method

TableUpdate decode(
  1. BsatnDecoder decoder
)

Implementation

static TableUpdate decode(BsatnDecoder decoder) {
  final tableId = decoder.readU32();
  final tableName = decoder.readString();
  final numRows = decoder.readU64();
  final updates = decoder.readList(
    () => CompressableQueryUpdate.decode(decoder),
  );

  return TableUpdate(
    tableId: tableId,
    tableName: tableName,
    numRows: numRows,
    updates: updates,
  );
}