()
| 323 | // isEmptyCellByIndex checks if both words are 0 to identify "never visually written" cells. |
| 324 | |
| 325 | function initCharAscii(): Int32Array { |
| 326 | const table = new Int32Array(128) |
| 327 | table.fill(-1) |
| 328 | table[32] = EMPTY_CHAR_INDEX // ' ' (space) |
| 329 | return table |
| 330 | } |
| 331 | |
| 332 | // --- Packed cell layout --- |
| 333 | // Each cell is 2 consecutive Int32 elements in the cells array: |