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

Function dictAdd

packages/effect/src/encoding/SchemaBinary.ts:3753–3758  ·  view source on GitHub ↗
(slot: DictSlot, value: string)

Source from the content-addressed store, hash-verified

3751}
3752
3753function dictAdd(slot: DictSlot, value: string) {
3754 const values = slot.values
3755 if (values.length >= DICT_MAX_ENTRIES) return
3756 slot.refs.set(value, values.length)
3757 values.push(value)
3758}
3759
3760function dictMark(dict: DictWrite, slot: DictSlot) {
3761 if (slot.stamp === dict.frame) return

Callers 2

encodeStringFunction · 0.85
decodeStringFunction · 0.85

Calls 2

setMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected