MCPcopy Index your code
hub / github.com/codeaashu/claude-code / cellAtCI

Function cellAtCI

src/ink/screen.ts:656–664  ·  view source on GitHub ↗

* Write cell data into an existing Cell object to avoid allocation. * Caller must ensure index is valid.

(screen: Screen, ci: number, out: Cell)

Source from the content-addressed store, hash-verified

654 * Caller must ensure index is valid.
655 */
656function cellAtCI(screen: Screen, ci: number, out: Cell): void {
657 const w1 = ci | 1
658 const word1 = screen.cells[w1]!
659 out.char = screen.charPool.get(screen.cells[ci]!)
660 out.styleId = word1 >>> STYLE_SHIFT
661 out.width = word1 & WIDTH_MASK
662 const hid = (word1 >>> HYPERLINK_SHIFT) & HYPERLINK_MASK
663 out.hyperlink = hid === 0 ? undefined : screen.hyperlinkPool.get(hid)
664}
665
666export function charInCellAt(
667 screen: Screen,

Callers 4

diffRowBothFunction · 0.85
diffRowRemovedFunction · 0.85
diffRowAddedFunction · 0.85
diffDifferentWidthFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected