The refactor of the fields parsing was going nice, smoothly, neat and tidy... and then I hit the freaking Decimal type.
I freaking hate this protocol.
All fields must be read till you find a byte with a high order bit -- basically, it is a stop bit.
The Exception is the Decimal, which is composed of two fields, and the first may indicate that the second isn't there.
My whole plan was to have a reader that would read up to the stop bit and send the bytes to a field-specific converter but the stupid Decimal breaks this flow.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!