MCPcopy
hub / github.com/codeaashu/claude-code / packWord1

Function packWord1

src/ink/screen.ts:342–348  ·  view source on GitHub ↗
(
  styleId: number,
  hyperlinkId: number,
  width: number,
)

Source from the content-addressed store, hash-verified

340
341// Pack styleId, hyperlinkId, and width into a single Int32
342function packWord1(
343 styleId: number,
344 hyperlinkId: number,
345 width: number,
346): number {
347 return (styleId << STYLE_SHIFT) | (hyperlinkId << HYPERLINK_SHIFT) | width
348}
349
350// Unwritten cell as BigInt64 — both words are 0, so the 64-bit value is 0n.
351// Used by BigInt64Array.fill() for bulk clears (resetScreen, clearRegion).

Callers 5

migrateScreenPoolsFunction · 0.85
setCellAtFunction · 0.85
setCellStyleIdFunction · 0.85
blitRegionFunction · 0.85
clearRegionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected