getWidth method

int getWidth(
  1. int index
)

The width of cell index: 1, 2 for a wide character, 0 when empty.

Implementation

int getWidth(int index) {
  return _data[index * _cellSize + _cellContent] >> CellContent.widthShift;
}