MCPcopy Index your code
hub / github.com/AnswerOverflow/AnswerOverflow / getProcessId

Function getProcessId

packages/ui/src/utils/snowflake.tsx:34–36  ·  view source on GitHub ↗
(snowflake: Snowflake)

Source from the content-addressed store, hash-verified

32}
33
34export function getProcessId(snowflake: Snowflake) {
35 return Number((BigInt(snowflake) & BigInt(0x1f000)) >> BigInt(12));
36}
37
38export function getIncrement(snowflake: Snowflake) {
39 return Number(BigInt(snowflake) & BigInt(0xfff));

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected