MCPcopy Create free account
hub / github.com/Noumena-Network/code / packWord1

Function packWord1

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

Source from the content-addressed store, hash-verified

368
369// Pack styleId, hyperlinkId, and width into a single Int32
370function packWord1(
371 styleId: number,
372 hyperlinkId: number,
373 width: number,
374): number {
375 return (styleId << STYLE_SHIFT) | (hyperlinkId << HYPERLINK_SHIFT) | width
376}
377
378// Unwritten cell as BigInt64 — both words are 0, so the 64-bit value is 0n.
379// Used by BigInt64Array.fill() for bulk clears (resetScreen, clearRegion).

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected