I need to parse some floats from a binary blob. The whole blob is floats, so the number of floats can be found from the blob size.
Is gloss the best way to do it? Is there anything simpler? gloss doesn't seem to have a nice way to saying "read floats until you run out of bytes". I also couldn't get the (repeat) call to work for this. It seems to have its own ideas about how data should look, rather than being a general parser. I was eventually able to get it to work by doing
(gloss.core/compile-frame {:scores (repeat count :float32)})
before decoding each record, which creates a gloss codec for each record, which seems a bit much.