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

Function decodeSized

packages/effect/src/encoding/SchemaBinary.ts:4431–4436  ·  view source on GitHub ↗
(layout: Layout, r: Reader)

Source from the content-addressed store, hash-verified

4429}
4430
4431function decodeSized(layout: Layout, r: Reader): unknown {
4432 const saved = r.enter(r.uvarint())
4433 const value = decodeChecked(layout, r)
4434 r.exit(saved)
4435 return value
4436}
4437
4438function decodeSlot(layout: Layout, r: Reader): unknown {
4439 if (isSelfDelimiting(layout)) return decodeValue(layout, r)

Callers 2

decodeStructPositionalFunction · 0.85
decodeArrayFunction · 0.85

Calls 4

decodeCheckedFunction · 0.85
enterMethod · 0.80
exitMethod · 0.80
uvarintMethod · 0.45

Tested by

no test coverage detected