int cellGetFlags(int index) { if (index >= _maxCols) return 0; final offset = index * _cellSize + _cellAttributes; return (_cells[offset] >> _cellFlags) & 0xFF; }