iterateFields
iterateFields(
input):IterableIterator<TLVField>
Defined in: payload/dist/tlv.d.ts:29
Walk a TLV-encoded string and return one field at a time. Stops cleanly at end-of-input; throws on malformed length headers or truncated values.
Designed for parsing both the root payload and nested template values — the same algorithm applies at any depth.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”IterableIterator<TLVField>