(ctx: EncodeContext, layout: Layout, value: unknown, mode: Mode, w: Writer)
| 4334 | let pooledWriter: Writer | undefined = new Writer() |
| 4335 | |
| 4336 | function writeFrame(ctx: EncodeContext, layout: Layout, value: unknown, mode: Mode, w: Writer) { |
| 4337 | const mark = w.beginSized() |
| 4338 | w.byte(mode.envelope) |
| 4339 | if (mode.positional) w.bytes(mode.fingerprint) |
| 4340 | encodeValue(ctx, layout, value, w) |
| 4341 | w.endSized(mark) |
| 4342 | } |
| 4343 | |
| 4344 | // One context and one writer across a batch, so the caches built for the |
| 4345 | // first frame serve the rest and the frames need no second pass to join. The |
no test coverage detected