lengthRefGet(ctx: Context | undefined | null,lengthOrRef: LengthOrRef): number | undefined
Attempts to resolve a length value from a reference or literal.
This is an internal function used by array and bytes coders to resolve length values. If the length is a reference, it will be resolved using the provided context. If the length is a literal number, it will be returned as-is. If no context is provided or the reference cannot be resolved, undefined is returned.
ctx: Context | undefined | null
The context for resolving references
lengthOrRef: LengthOrRef
The length value (can be a number or reference)