We can add fixed_length and max_length decoding as options. Can you start another thread with a “feature request” flag?
The code to change is in Beam.lua. Currently we use the symbol as a stopping flag. We can generalize that to implement these options.
(As always, PR would be the easiest way to get the code in.)