MCPcopy Index your code
hub / github.com/glideapps/quicktype / makeValue

Function makeValue

src/CompressedJSON.ts:31–33  ·  view source on GitHub ↗
(t: Tag, index: number)

Source from the content-addressed store, hash-verified

29const TAG_MASK = (1 << TAG_BITS) - 1;
30
31function makeValue(t: Tag, index: number): Value {
32 return t | (index << TAG_BITS);
33}
34
35function getIndex(v: Value, tag: Tag): number {
36 if (valueTag(v) !== tag) {

Callers 1

CompressedJSONClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…