isLengthOrRef(value: unknown): value is LengthOrRef
Type guard to check if a value is a valid length or a reference to a length.
This is an internal function used to validate length parameters in binary encoding/decoding operations. A valid length value can be either a literal number or a reference that will be resolved during encoding/decoding.
value is LengthOrRef
True if the value is a length or reference, false otherwise