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

Function encodeStructRun

packages/effect/src/encoding/SchemaBinary.ts:3846–3856  ·  view source on GitHub ↗
(ctx: EncodeContext, plan: RunPlan, arr: ReadonlyArray<unknown>, count: number, w: Writer)

Source from the content-addressed store, hash-verified

3844}
3845
3846function encodeStructRun(ctx: EncodeContext, plan: RunPlan, arr: ReadonlyArray<unknown>, count: number, w: Writer) {
3847 const shapes: Array<number> = []
3848 const tables: Array<InternWrite | undefined> = []
3849 for (let i = 0; i < count; i++) {
3850 issuePath[issuePathLen++] = i
3851 const mark = w.beginSized()
3852 encodeRunRow(ctx, plan, shapes, tables, arr[i], w)
3853 w.endSized(mark)
3854 issuePathLen--
3855 }
3856}
3857
3858function encodeRunRow(
3859 ctx: EncodeContext,

Callers 1

encodeArrayFunction · 0.85

Calls 3

encodeRunRowFunction · 0.85
beginSizedMethod · 0.80
endSizedMethod · 0.80

Tested by

no test coverage detected