Fragments of at most maxFragmentLen bytes. The length is the
reference's usize: a safe integer number, or a bigint up to
2⁶⁴ − 1 (a number of 2⁵³ or more is not accepted, as it may already
have been rounded).
Number of fragments; parts beyond it are mixtures.
Parts produced so far.
Whether every plain fragment has been emitted at least once.
Whether the message fits in one fragment.
The next part: a plain fragment while seqNum ≤ partCount, then a mixture.
Start again from part 1.
Parts, forever.
Produces parts forever; the first
partCountare the plain fragments.The sequence is infinite by design:
Array.from(encoder)never returns. Iterate withfor … ofandbreak, or take a prefix with the iterator helpers (encoder[Symbol.iterator]().take(n), Node ≥ 22).