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

Function internWrite

packages/effect/src/encoding/SchemaBinary.ts:3653–3655  ·  view source on GitHub ↗
(tables: Array<InternWrite | undefined>, index: number)

Source from the content-addressed store, hash-verified

3651const INTERN_DISABLE_AT = 64
3652
3653function internWrite(tables: Array<InternWrite | undefined>, index: number): InternWrite {
3654 return tables[index] ??= { values: [], refs: undefined, hits: 0, disabled: false }
3655}
3656
3657function internRef(table: InternWrite, value: unknown): number | undefined {
3658 const refs = table.refs

Callers 1

encodeRunRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected