function lengthRefSet
lengthRefSet(
ctx: Context | null | undefined,
coder: Coder<number>,
length: number
): void

Sets a length value in the context for the given coder.

This is an internal function that stores a length value in the encoding/decoding context, making it available for resolution by references that use the same coder. It's used during encoding/decoding operations to populate the context with values that length references need to resolve.

Parameters

ctx: Context | null | undefined

The context to set the length in

coder: Coder<number>

The coder to set the length for

length: number

The length value to set

Return Type

void

Usage

import { lengthRefSet } from "mod.ts";