@Thomas, let me know if you run into any problems. Since the project is quite young, I'm very open to add a couple of features. Rob, Ulisses and Cesar have done a very nice job providing some very nice ideas!
On Sat, Dec 7, 2013 at 12:05 AM, Oleksandr Petrov < oleksandr.pet...@gmail.com> wrote: > @Rob > I have a working prototype of bits, which are encoded from 32 flags and > decoded back to them. I've added a couple of helper methods such as > `set-bits-at` and `get-set-bits` and so on to facilitate it. > Although I recommend using enums for that (which is possible in majority > of cases). > I'll release it shortly and will give an additional notice > > @Ulisses > Yes, that's been missing in the released version. I'll add it shortly. > Working on a patch, should be available by monday. You can always fork & > add it, we love patches! > > @Cesar > I haven't planned to do any dynamic payloads, although I'll add a couple > of examples on how I'm doing same thing while parsing Cassandra protocol. > Since their types are dynamic (for instance, string type consists of long > and sequence of ASCII chars), I do have some version remotely resembling > what you mention. Although since I haven't yet found an elegant way, I can > only provide a hint on how to implement it. Will provide docs for that > together with the rest of patches in work. > > > > > On Wed, Dec 4, 2013 at 3:58 PM, Rob Day <robert....@merton.oxon.org>wrote: > >> On 29 November 2013 22:15, Alex P <oleksandr.pet...@gmail.com> wrote: >> > Buffy [1] is a Clojure library to work with Binary Data, write complete >> > binary protocol implementations >> > in clojure, store your complex data structures in an off-heap chache, >> read >> > binary files and do >> > everything you would usually do `ByteBuffer`. >> >> Is there any plan to support bit-fields? My main interest at present >> is the Diameter protocol, where some individual bits in the header are >> true/false flags - Gloss decodes that nicely into a sequence of bools, >> but I can't see similar support in Buffy. >> >> -- >> -- >> 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 >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > alex p > -- alex p -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.