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.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to