Looks good! A few questions:

1) Is it possible to specify a byte length for a 'repeated codec, rather than a 
number of objects?

2) Would you consider an enum type, for convenience? Something like:

(defn enum [type m]
    (compile-codec type m
        (clojure.set/map-invert m)))

3) In the mp3.clj demo, the flags seem to be listed in the wrong order. Or does 
the 'bits function actually take its arguments LSB-first?

On Jan 29, 2014, at 06:32 , Steffen <steffen.die...@gmail.com> wrote:

> Hello Clojure community,
> 
> there are already two excellent libraries for reading/writing/manipulating 
> binary data: Zach's Lamina and Clojurewerkz' Buffy for java's ByteBuffers. I 
> would like to offer another library for java's Input/OutputStreams. It is 
> inspired by Lamina but not compatible in syntax, I'm sorry.
> The focus is on 
>       * read/write performance, 
>       * no external dependencies
>       * works with java.util.*Stream
> If you use Leiningen please add the following to your dependencies:
> 
>     [org.clojars.smee/binary "0.2.4"]
> 
> The link to the source code and README is https://github.com/smee/binary.
> Democode to parse Bitcoin blocks (including scripts): 
> https://github.com/smee/binary/blob/master/src/org/clojars/smee/binary/demo/bitcoin.clj
> Democode for MP3 ID3v2 tags (work in progress): 
> https://github.com/smee/binary/blob/master/src/org/clojars/smee/binary/demo/mp3.clj
> 
> Apart from the README, doc strings there is no further documentation, yet. 
> Please refer to the demos and the unit tests for now.
> 
> Thanks,
> 
> Steffen Dienst
> 
> -- 
> -- 
> 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.

-- 
-- 
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.

Reply via email to