MCPcopy Create free account
hub / github.com/Effect-TS/effect / mask

Function mask

packages/effect/src/internal/hashMap.ts:57–57  ·  view source on GitHub ↗
(hash: number, shift: number)

Source from the content-addressed store, hash-verified

55
56/** @internal */
57const mask = (hash: number, shift: number): number => (hash >>> shift) & BITMAP_INDEX_MASK
58
59/** @internal */
60const bitpos = (hash: number, shift: number): number => 1 << mask(hash, shift)

Callers 5

bitposFunction · 0.85
getMethod · 0.85
hasMethod · 0.85
setMethod · 0.85
removeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected