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

Function encodeSized

packages/effect/src/encoding/SchemaBinary.ts:3287–3291  ·  view source on GitHub ↗
(ctx: EncodeContext, layout: Layout, value: unknown, w: Writer)

Source from the content-addressed store, hash-verified

3285}
3286
3287function encodeSized(ctx: EncodeContext, layout: Layout, value: unknown, w: Writer) {
3288 const mark = w.beginSized()
3289 encodeValue(ctx, layout, value, w)
3290 w.endSized(mark)
3291}
3292
3293function encodeSymbol(ctx: EncodeContext, value: unknown, w: Writer) {
3294 const key = globalThis.Symbol.keyFor(value as symbol)

Callers 3

encodeWirePayloadFunction · 0.85
encodeStructPositionalFunction · 0.85
encodeArrayFunction · 0.85

Calls 3

beginSizedMethod · 0.80
endSizedMethod · 0.80
encodeValueFunction · 0.70

Tested by

no test coverage detected